This commit is contained in:
Araq 2015-08-08 14:39:32 +02:00
commit 4f8d982d5b
2 changed files with 32 additions and 4 deletions

View file

@ -0,0 +1,13 @@
discard """
output: "hi"
"""
# bug #2670
template testTemplate(b: bool): stmt =
when b:
var a = "hi"
else:
var a = 5
echo a
testTemplate(true)