summary refs log tree commit diff stats
path: root/tests/macros/tfail_parse.nim
blob: 1925f2b69281b994a16005efb83355cd7a6c142a (plain) (blame)
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
""")