fix tnoop
This commit requires further investigation. Fixing semExpr(nkCall) once and for all to work with sym-choices and to allow overloading with immediate templates and macros will probably set this straight too.
This commit is contained in:
parent
28d9398de7
commit
bdeaee4a33
4 changed files with 17 additions and 14 deletions
|
|
@ -3,11 +3,10 @@ discard """
|
|||
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
|
||||
# Tests the new check in the semantic pass
|
||||
|
||||
var
|
||||
a: int
|
||||
|
||||
a() #ERROR_MSG expression 'a()' cannot be called
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue