summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornarimiran <narimiran@disroot.org>2019-05-29 11:52:54 +0200
committernarimiran <narimiran@disroot.org>2019-05-29 11:52:54 +0200
commit4f989b91623a0d733d01702d166bb664cd749d66 (patch)
tree93dc33f544eddced94ed64f323dec14f3bb31bd4
parent0f4446b8612da81a06ff4efff6c14b882a47ba4d (diff)
downloadNim-4f989b91623a0d733d01702d166bb664cd749d66.tar.gz
close #5235 by adding a test
-rw-r--r--tests/template/template_issues.nim15
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!")