Adjust some tests to make them pass
The non-scoped behaviour of static blocks was exploited by those tests, replace all the variables declared whithin one with compileTime marked ones.
This commit is contained in:
parent
9543689306
commit
f559e62e45
3 changed files with 12 additions and 15 deletions
|
|
@ -19,9 +19,9 @@ block:
|
|||
var x = default(type(0))
|
||||
|
||||
# #6379
|
||||
static:
|
||||
import algorithm
|
||||
import algorithm
|
||||
|
||||
static:
|
||||
var numArray = [1, 2, 3, 4, -1]
|
||||
numArray.sort(cmp)
|
||||
assert numArray == [-1, 1, 2, 3, 4]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue