diff options
author | LemonBoy <thatlemon@gmail.com> | 2018-06-25 15:56:13 +0200 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2018-06-25 15:56:13 +0200 |
commit | f559e62e45b4be227d494e75fe82f571ee410840 (patch) | |
tree | 82a0acd835fa368046d0601f876c23345822cb4f /tests/pragmas | |
parent | 95436893061176d51b1c11fdf5418b3ed17a8455 (diff) | |
download | Nim-f559e62e45b4be227d494e75fe82f571ee410840.tar.gz |
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.
Diffstat (limited to 'tests/pragmas')
-rw-r--r-- | tests/pragmas/treorder.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/pragmas/treorder.nim b/tests/pragmas/treorder.nim index 6a6bbff4d..1006af527 100644 --- a/tests/pragmas/treorder.nim +++ b/tests/pragmas/treorder.nim @@ -71,5 +71,4 @@ macro make(arg: untyped): untyped = proc first(i: int): void = make(second) -static: - var ss: string = "" \ No newline at end of file +var ss {.compileTime.}: string = "" \ No newline at end of file |