summary refs log tree commit diff stats
path: root/tests/reject/tnoop.nim
blob: 2d320c84992bef35d4a83ebf4d45d56a58e301ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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