fixes error propagation for macros.parseExpr
This commit is contained in:
parent
77353b8084
commit
bc5879b9b7
2 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue