tfail_parse.nim 283 B

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