This commit is contained in:
Araq 2019-03-31 19:59:17 +02:00
commit cce8d3da27
2 changed files with 2 additions and 0 deletions

View file

@ -482,6 +482,7 @@ proc semResolvedCall(c: PContext, x: TCandidate,
result.sons[0] = newSymNode(finalCallee, getCallLineInfo(result.sons[0]))
if containsGenericType(result.typ) or x.fauxMatch == tyUnknown:
result.typ = newTypeS(x.fauxMatch, c)
if result.typ.kind == tyError: incl result.typ.flags, tfCheckedForDestructor
return
let gp = finalCallee.ast.sons[genericParamsPos]
if gp.kind != nkEmpty: