fix #5890
This commit is contained in:
parent
4f2b69d676
commit
30ccadfe4c
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue