Fix tests/parallel/tguard2.nim

This commit is contained in:
Zahary Karadjov 2020-03-30 03:47:02 +03:00 • committed by Andreas Rumpf
commit d374c6373b
3 changed files with 5 additions and 3 deletions

View file

@ -1937,7 +1937,9 @@ 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.semTryExpr(c, call)
# XXX: This would be much nicer if we don't use `semTryExpr` and
# instead we directly search for overloads with `resolveOverloads`:
result = c.semTryExpr(c, call, {efNoSem2Check})
if result != nil:
if result.typ == nil: return nil