mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-16 22:11:18 +00:00
fixed the bugfix of #247
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user