diff options
Diffstat (limited to 'tests/macros/ttryparseexpr.nim')
-rw-r--r-- | tests/macros/ttryparseexpr.nim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/macros/ttryparseexpr.nim b/tests/macros/ttryparseexpr.nim index c7bbc8e5b..e6e9e9880 100644 --- a/tests/macros/ttryparseexpr.nim +++ b/tests/macros/ttryparseexpr.nim @@ -1,11 +1,11 @@ discard """ - outputsub: '''Error: invalid indentation 45''' + outputsub: '''Error: expression expected, but found '[EOF]' 45''' """ # feature request #1473 import macros -macro test(text: string): expr = +macro test(text: string): untyped = try: result = parseExpr(text.strVal) except ValueError: @@ -18,3 +18,7 @@ const c = test("\"") # bug #2504 echo a, " ", b + +static: + # Issue #9918 + discard parseStmt("echo(1+1);") |