bugfix: exception tracking (still disabled)
This commit is contained in:
parent
f35b51c68f
commit
224f42bbd7
3 changed files with 3 additions and 3 deletions
|
|
@ -219,8 +219,7 @@ proc checkRaisesSpec(spec, real: PNode) =
|
|||
for r in items(real):
|
||||
block search:
|
||||
for s in 0 .. <spec.len:
|
||||
# s supertype of r?
|
||||
if inheritanceDiff(spec[s].typ, r.excType) <= 0:
|
||||
if inheritanceDiff(r.excType, spec[s].typ) <= 0:
|
||||
used.incl(s)
|
||||
break search
|
||||
# XXX call graph analysis would be nice here!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue