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
|
|
@ -71,5 +71,4 @@ macro make(arg: untyped): untyped =
|
|||
proc first(i: int): void =
|
||||
make(second)
|
||||
|
||||
static:
|
||||
var ss: string = ""
|
||||
var ss {.compileTime.}: string = ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue