This commit is contained in:
Araq
2014-11-12 02:36:59 +01:00
parent 2d43fcafe0
commit b2f577df23
9 changed files with 104 additions and 26 deletions

View File

@@ -0,0 +1,17 @@
discard """
outputsub: '''Error: invalid indentation'''
"""
# feature request #1473
import macros
macro test(text: string): expr =
try:
result = parseExpr(text.strVal)
except ValueError:
result = newLit getCurrentExceptionMsg()
const
a = test("foo&&")
echo a