1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
discard """ action: "reject" cmd: "nim check $file" errormsg: "expected expression, but got multiple statements [ValueError]" file: "macros.nim" """ import macros static: discard parseStmt("'") discard parseExpr("'") discard parseExpr(""" proc foo() proc foo() = discard """)