summary refs log tree commit diff stats
path: root/tests/template
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2017-04-10 17:26:50 +0300
committerZahary Karadjov <zahary@gmail.com>2017-04-10 17:26:50 +0300
commitf7b10e213b81588d560e37aa5f7c8b0d10ea5689 (patch)
tree29df85ab757f066769da0dac5c0afc31f3bd4bb3 /tests/template
parent8b63b84924ed9de9d8bd3f348eac597e186916a0 (diff)
downloadNim-f7b10e213b81588d560e37aa5f7c8b0d10ea5689.tar.gz
support post expression blocks in return and yield
Diffstat (limited to 'tests/template')
-rw-r--r--tests/template/tgensymregression.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/template/tgensymregression.nim b/tests/template/tgensymregression.nim
index 0fadbde41..4cc64a831 100644
--- a/tests/template/tgensymregression.nim
+++ b/tests/template/tgensymregression.nim
@@ -59,14 +59,13 @@ template wrap(body: typed): untyped =
 
 macro makeProc(): typed =
   # Make a template tree
-  result = (quote do:
+  result = quote do:
     proc someProc* =
       wrap do:
         let x = 123
         # Implicit conversion here
         let s: string = x
         echo s
-  )
 
 makeProc()