* add testcase for #6036 * try * try again * make it work
This commit is contained in:
parent
1725db9295
commit
4374c638cd
1 changed files with 11 additions and 0 deletions
11
tests/ccgbugs/tcompile_time_var_at_runtime.nim
Normal file
11
tests/ccgbugs/tcompile_time_var_at_runtime.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
discard """
|
||||
output: "1\n2\n2\n3"
|
||||
"""
|
||||
var a {.compileTime.} = 1
|
||||
|
||||
echo a
|
||||
a = 2
|
||||
echo a
|
||||
echo a
|
||||
a = 3
|
||||
echo a
|
||||
Loading…
Add table
Add a link
Reference in a new issue