close #5235 by adding a test
This commit is contained in:
parent
0f4446b861
commit
4f989b9162
1 changed files with 14 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ output: '''
|
|||
0
|
||||
a
|
||||
hi
|
||||
Hello, World!
|
||||
'''
|
||||
"""
|
||||
|
||||
|
|
@ -207,3 +208,15 @@ block t4097:
|
|||
|
||||
doAssert idFor(int8) == 2
|
||||
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!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue