diff options
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: |