This commit is contained in:
Zahary Karadjov
2017-06-04 18:16:29 +03:00
committed by Andreas Rumpf
parent 4f2b69d676
commit 30ccadfe4c

View File

@@ -1339,7 +1339,8 @@ proc typeRel(c: var TCandidate, f, aOrig: PType,
result = isNone
else:
result = typeRel(c, lastSon(f), a)
if result != isNone: put(c, f, a)
if result != isNone and a.kind != tyNil:
put(c, f, a)
of tyGenericBody:
considerPreviousT: