diff options
author | deech <aditya.siram@gmail.com> | 2019-02-25 04:21:14 -0600 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-02-25 11:21:14 +0100 |
commit | 68a82f100e66e1950064a353c209c7f0039327fc (patch) | |
tree | 8d5ccc85f227a97c969605643d3847197e8f5a57 /compiler | |
parent | 28a83a838821cbe3efc8ddd412db966ca164ef5c (diff) | |
download | Nim-68a82f100e66e1950064a353c209c7f0039327fc.tar.gz |
Fixes #10727. (#10728)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semgnrc.nim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/semgnrc.nim b/compiler/semgnrc.nim index 5972f3b55..2810fca9e 100644 --- a/compiler/semgnrc.nim +++ b/compiler/semgnrc.nim @@ -352,7 +352,12 @@ proc semGenericStmt(c: PContext, n: PNode, openScope(c) n.sons[L - 2] = semGenericStmt(c, n.sons[L-2], flags, ctx) for i in countup(0, L - 3): - addTempDecl(c, n.sons[i], skForVar) + if (n.sons[i].kind == nkVarTuple): + for s in n.sons[i]: + if (s.kind == nkIdent): + addTempDecl(c,s,skForVar) + else: + addTempDecl(c, n.sons[i], skForVar) openScope(c) n.sons[L - 1] = semGenericStmt(c, n.sons[L-1], flags, ctx) closeScope(c) |