improve error message for mismatched proc types
This commit is contained in:
parent
0bb18d1821
commit
443a46b40d
2 changed files with 43 additions and 13 deletions
|
|
@ -543,7 +543,7 @@ proc procTypeRel(c: var TCandidate, f, a: PType): TTypeRelation =
|
|||
else:
|
||||
return isNone
|
||||
when useEffectSystem:
|
||||
if not compatibleEffects(f, a): return isNone
|
||||
if compatibleEffects(f, a) != efCompat: return isNone
|
||||
|
||||
of tyNil:
|
||||
result = f.allowsNil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue