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,9 +1,9 @@
discard """
nimout: "'a' is deprecated [Deprecated]"
nimout: "a is deprecated [Deprecated]"
"""
var
a {.deprecated.}: array[0..11, int]
a[8] = 1

View file

@ -1,6 +1,6 @@
discard """
line: 7
errormsg: "expression 'items' cannot be called"
errormsg: "undeclared identifier: 'items'"
"""
type a = enum b,c,d

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()