diff options
author | Araq <rumpf_a@web.de> | 2018-12-21 11:48:43 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-12-21 11:50:24 +0100 |
commit | 23448a96cca021d0fecd355e9d679fbb11b67102 (patch) | |
tree | 73f7e172e7e0de46c8fd9c524be2edaae48e21c6 /compiler | |
parent | f9d58b9305e256fc928dc1be059333b6b33d7154 (diff) | |
download | Nim-23448a96cca021d0fecd355e9d679fbb11b67102.tar.gz |
fixes #10058 [backport]
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/vmgen.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim index 1f2a3e6d1..afadb4169 100644 --- a/compiler/vmgen.nim +++ b/compiler/vmgen.nim @@ -1736,8 +1736,9 @@ proc genVarSection(c: PCtx; n: PNode) = #assert(a.sons[0].kind == nkSym) can happen for transformed vars if a.kind == nkVarTuple: for i in 0 .. a.len-3: - if not a[i].sym.isGlobal: setSlot(c, a[i].sym) - checkCanEval(c, a[i]) + if a[i].kind == nkSym: + if not a[i].sym.isGlobal: setSlot(c, a[i].sym) + checkCanEval(c, a[i]) c.gen(lowerTupleUnpacking(c.graph, a, c.getOwner)) elif a.sons[0].kind == nkSym: let s = a.sons[0].sym |