fixes --gc:none regression; made some tests green

This commit is contained in:
Araq 2015-03-10 02:09:55 +01:00
commit ee57bb3e3e
7 changed files with 49 additions and 41 deletions

View file

@ -1,7 +1,7 @@
discard """
file: "tissue710.nim"
line: 8
errorMsg: "expression '||' cannot be called"
errorMsg: "undeclared identifier: '||'"
"""
var sum = 0
for x in 3..1000:

View file

@ -1,12 +1,11 @@
discard """
file: "tnoop.nim"
line: 11
errormsg: "expression \'a()\' cannot be called"
errormsg: "undeclared identifier: 'a'"
"""
# Tests the new check in the semantic pass
var
a: int
a() #ERROR_MSG expression 'a()' cannot be called
a()