From 4f989b91623a0d733d01702d166bb664cd749d66 Mon Sep 17 00:00:00 2001 From: narimiran Date: Wed, 29 May 2019 11:52:54 +0200 Subject: [PATCH] close #5235 by adding a test --- tests/template/template_issues.nim | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/template/template_issues.nim b/tests/template/template_issues.nim index 15d6ab2b1c..dd545d1e28 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!")