diff options
Diffstat (limited to 'compiler/semtempl.nim')
-rw-r--r-- | compiler/semtempl.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/semtempl.nim b/compiler/semtempl.nim index 75c6bc4bb..2952831e9 100644 --- a/compiler/semtempl.nim +++ b/compiler/semtempl.nim @@ -340,9 +340,8 @@ proc semTemplBody(c: var TemplCtx, n: PNode): PNode = for i in countup(0, sonsLen(n)-1): var it = n.sons[i] if it.len == 2: - when newScopeForIf: openScope(c) + openScope(c) it.sons[0] = semTemplBody(c, it.sons[0]) - when not newScopeForIf: openScope(c) it.sons[1] = semTemplBody(c, it.sons[1]) closeScope(c) else: |