fixed the bugfix of #247

This commit is contained in:
Araq
2012-11-09 01:02:39 +01:00
parent 6cfbfc43a4
commit 04f44f763f

View File

@@ -84,7 +84,7 @@ type
PEffects = var TEffects
proc throws(tracked: PEffects, n: PNode) =
if n.typ.kind != tyError: tracked.exc.add n
if n.typ == nil or n.typ.kind != tyError: tracked.exc.add n
proc excType(n: PNode): PType =
assert n.kind != nkRaiseStmt