* add testcase for #6036

* try

* try again

* make it work
This commit is contained in:
flywind 2020-10-30 17:00:25 +08:00 • committed by GitHub
commit 4374c638cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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