doc2 support for nimweb; fixed graphics.withEvents

This commit is contained in:
Araq 2012-11-01 08:32:30 +01:00
commit f35b51c68f
4 changed files with 13 additions and 6 deletions

View file

@ -219,8 +219,8 @@ proc checkRaisesSpec(spec, real: PNode) =
for r in items(real):
block search:
for s in 0 .. <spec.len:
# r supertype of s?
if inheritanceDiff(r.excType, spec[s].typ) <= 0:
# s supertype of r?
if inheritanceDiff(spec[s].typ, r.excType) <= 0:
used.incl(s)
break search
# XXX call graph analysis would be nice here!