close #5235 by adding a test

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

View File

@@ -5,6 +5,7 @@ output: '''
0
a
hi
Hello, World!
'''
"""
@@ -206,4 +207,16 @@ block t4097:
defineId(int16)
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!")