summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-02-07 04:29:18 -0800
committerGitHub <noreply@github.com>2020-02-07 13:29:18 +0100
commit79ec8c257183e01c01811a34e3930de7814756fb (patch)
tree1377758b7d20d72915fd1e6dab3ec2da17c7fc46 /compiler
parentc0a2e2ed92610933983d1edb57d1ad0204189f61 (diff)
downloadNim-79ec8c257183e01c01811a34e3930de7814756fb.tar.gz
fix #13182: `proc fun(a: varargs[Foo, conv])` now can be overloaded (#13345) [backport]
Diffstat (limited to 'compiler')
-rw-r--r--compiler/sigmatch.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index 677afc2d5..09b8d0b76 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -1938,7 +1938,8 @@ proc localConvMatch(c: PContext, m: var TCandidate, f, a: PType,
   var call = newNodeI(nkCall, arg.info)
   call.add(f.n.copyTree)
   call.add(arg.copyTree)
-  result = c.semExpr(c, call)
+  result = c.semTryExpr(c, call)
+
   if result != nil:
     if result.typ == nil: return nil
     # resulting type must be consistent with the other arguments: