This commit is contained in:
Araq
2015-06-25 11:30:03 +02:00
parent 396e69e39c
commit 47658cd426
2 changed files with 2 additions and 0 deletions

View File

@@ -1300,6 +1300,8 @@ proc paramTypesMatchAux(m: var TCandidate, f, argType: PType,
of isInferred, isInferredConvertible:
if arg.kind in {nkProcDef, nkIteratorDef} + nkLambdaKinds:
result = c.semInferredLambda(c, m.bindings, arg)
elif arg.kind != nkSym:
return nil
else:
let inferred = c.semGenerateInstance(c, arg.sym, m.bindings, arg.info)
result = newSymNode(inferred, arg.info)