fixes --gc:none regression; made some tests green
This commit is contained in:
parent
1efb5174f2
commit
ee57bb3e3e
7 changed files with 49 additions and 41 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 7
|
||||
errormsg: "expression 'items' cannot be called"
|
||||
errormsg: "undeclared identifier: 'items'"
|
||||
"""
|
||||
|
||||
type a = enum b,c,d
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue