* add testcase for #6036

* try

* try again

* make it work

(cherry picked from commit 4374c638cd)
This commit is contained in:
flywind
2020-10-30 17:00:25 +08:00
committed by narimiran
parent daba6d935f
commit e301285d4c

View 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