Nim/tests/reject/tnoop.nim
2013-03-16 23:53:07 +01:00

13 lines
213 B
Nim

discard """
file: "tnoop.nim"
line: 11
errormsg: "expression \'a()\' cannot be called"
"""
# Tests the new check in the semantic pass
var
a: int
a() #ERROR_MSG expression 'a()' cannot be called