mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 21:17:48 +00:00
close #5235 by adding a test
This commit is contained in:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user