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:
LemonBoy 2018-06-25 15:56:13 +02:00
commit f559e62e45
3 changed files with 12 additions and 15 deletions

View file

@ -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]