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