From 55b5401dc6ac0b42db1cca9f9dd50f3e19e3dbc0 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 14 Apr 2017 19:18:26 +0200 Subject: fixes yet another regression caused by the .procvar removal --- compiler/sempass2.nim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler') diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim index 88c05faa4..ce7474966 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -783,6 +783,10 @@ proc track(tracked: PEffects, n: PNode) = notNilCheck(tracked, last, child.sons[i].typ) # since 'var (a, b): T = ()' is not even allowed, there is always type # inference for (a, b) and thus no nil checking is necessary. + of nkConstSection: + for child in n: + let last = lastSon(child) + track(tracked, last) of nkCaseStmt: trackCase(tracked, n) of nkWhen, nkIfStmt, nkIfExpr: trackIf(tracked, n) of nkBlockStmt, nkBlockExpr: trackBlock(tracked, n.sons[1]) -- cgit 1.4.1-2-gfad0