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
x = mut 4 y = x print y x := 5 print y
Expected to print 4 twice, but it instead prints 4 then 5. This can be seen in the hir (--emit-hir):
4
5
--emit-hir
x_v0 = (#StackAlloc 4_i32); y_v1 = x_v0; (print_v2 y_v1); x_v0 := 5_i32; (print_v2 y_v1)
x is a stack-allocated pointer, but y does not dereference it as it should. This is a code-gen issue.
x
y
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected to print
4
twice, but it instead prints4
then5
.This can be seen in the hir (
--emit-hir
):x
is a stack-allocated pointer, buty
does not dereference it as it should. This is a code-gen issue.The text was updated successfully, but these errors were encountered: