next steps for exception tracking

This commit is contained in:
Araq 2012-11-03 15:57:12 +01:00
commit 9f38ff0c65
7 changed files with 73 additions and 34 deletions

View file

@ -297,6 +297,8 @@ proc procTypeRel(c: var TCandidate, f, a: PType): TTypeRelation =
result = isConvertible
else:
return isNone
when useEffectSystem:
if not compatibleEffects(f, a): return isNone
else: nil
proc matchTypeClass(c: var TCandidate, f, a: PType): TTypeRelation =