We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This code:
proc test = var idx {.global.} = 0 echo idx idx += 1 test() test()
gives different results depending on how to execute it:
# nim e test.nim 0 0
# nim r test.nim 0 1
Tested on 1.6.2 and latest git revision.
The text was updated successfully, but these errors were encountered:
fixes #19502; fixes #17552; lift {.global.} at the tranf phase
{.global.}
66ef01e
No branches or pull requests
This code:
gives different results depending on how to execute it:
Tested on 1.6.2 and latest git revision.
The text was updated successfully, but these errors were encountered: