diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-04-14 19:18:26 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-04-14 19:18:26 +0200 |
commit | 55b5401dc6ac0b42db1cca9f9dd50f3e19e3dbc0 (patch) | |
tree | a87cadba7e5251b4dc2b726d62c1de3beee23cdc /compiler | |
parent | ce86b4ad78aae11f62c50e4f46e8ab2a124356b4 (diff) | |
download | Nim-55b5401dc6ac0b42db1cca9f9dd50f3e19e3dbc0.tar.gz |
fixes yet another regression caused by the .procvar removal
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sempass2.nim | 4 |
1 files changed, 4 insertions, 0 deletions
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]) |