close #5235 by adding a test

This commit is contained in:
narimiran 2019-05-29 11:52:54 +02:00
commit 4f989b9162

View file

@ -5,6 +5,7 @@ output: '''
0 0
a a
hi hi
Hello, World!
''' '''
""" """
@ -207,3 +208,15 @@ block t4097:
doAssert idFor(int8) == 2 doAssert idFor(int8) == 2
doAssert idFor(int16) == 3 doAssert idFor(int16) == 3
block t5235:
template outer(body: untyped) =
template test(val: string) =
const SomeConst: string = val
echo SomeConst
body
outer:
test("Hello, World!")