diff options
-rw-r--r-- | tests/template/template_issues.nim | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/template/template_issues.nim b/tests/template/template_issues.nim index 15d6ab2b1..dd545d1e2 100644 --- a/tests/template/template_issues.nim +++ b/tests/template/template_issues.nim @@ -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 \ No newline at end of file + 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!") |