fixed the bugfix of #247
This commit is contained in:
parent
6cfbfc43a4
commit
04f44f763f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue