From 04f44f763f597fc6562db93e88f67b3562a384a5 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 9 Nov 2012 01:02:39 +0100 Subject: [PATCH] fixed the bugfix of #247 --- compiler/sempass2.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim index 80bccee852..422eb44752 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -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