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

@ -71,5 +71,4 @@ macro make(arg: untyped): untyped =
proc first(i: int): void =
make(second)
static:
var ss: string = ""
var ss {.compileTime.}: string = ""