summary refs log tree commit diff stats
path: root/tests/macros/ttryparseexpr.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-11-13 09:12:27 +0100
committerAraq <rumpf_a@web.de>2014-11-13 09:12:27 +0100
commitbc5879b9b7e9574638c1336d3f2b44024b6e0401 (patch)
tree1d5e2b2eff5a67a264a99cec5b9057f59d44d96e /tests/macros/ttryparseexpr.nim
parent77353b8084922c4a79b63109382185cbe182ca54 (diff)
downloadNim-bc5879b9b7e9574638c1336d3f2b44024b6e0401.tar.gz
fixes error propagation for macros.parseExpr
Diffstat (limited to 'tests/macros/ttryparseexpr.nim')
-rw-r--r--tests/macros/ttryparseexpr.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/macros/ttryparseexpr.nim b/tests/macros/ttryparseexpr.nim
index 2a6f4437d..af932eb7d 100644
--- a/tests/macros/ttryparseexpr.nim
+++ b/tests/macros/ttryparseexpr.nim
@@ -1,5 +1,5 @@
 discard """
-  outputsub: '''Error: invalid indentation'''
+  outputsub: '''Error: invalid indentation 45'''
 """
 
 # feature request #1473
@@ -12,6 +12,8 @@ macro test(text: string): expr =
     result = newLit getCurrentExceptionMsg()
 
 const
+  valid = 45
   a = test("foo&&")
+  b = test("valid")
 
-echo a
+echo a, " ", b