diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-02-07 04:29:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 13:29:18 +0100 |
commit | 79ec8c257183e01c01811a34e3930de7814756fb (patch) | |
tree | 1377758b7d20d72915fd1e6dab3ec2da17c7fc46 /compiler | |
parent | c0a2e2ed92610933983d1edb57d1ad0204189f61 (diff) | |
download | Nim-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.nim | 3 |
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: |