This commit is contained in:
parent
c0a2e2ed92
commit
79ec8c2571
2 changed files with 49 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue