diff options
Diffstat (limited to 'compiler/semtempl.nim')
-rw-r--r-- | compiler/semtempl.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/semtempl.nim b/compiler/semtempl.nim index 65dc95916..1e6cd88b7 100644 --- a/compiler/semtempl.nim +++ b/compiler/semtempl.nim @@ -555,6 +555,10 @@ proc semTemplBody(c: var TemplCtx, n: PNode): PNode = result[1] = semTemplBody(c, n[1]) else: result = semTemplBodySons(c, n) + of nkTableConstr: + # also transform the keys (bug #12595) + for i in 0..<n.len: + result[i] = semTemplBodySons(c, n[i]) else: result = semTemplBodySons(c, n) |