You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code should set x to 100 and the assert should pass. However, x's value remains unchanged.
This only happens if the a parameter of become_100 is declared as mutable.
Aim
The following code should set
x
to 100 and the assert should pass. However, x's value remains unchanged.This only happens if the a parameter of become_100 is declared as mutable.
Expected Behavior
Assert should pass
Bug
SSA generated if the parameter is declared as mutable (incorrect):
SSA if the parameter is immutable (correct)
To Reproduce
Installation Method
Compiled from source
Nargo Version
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: