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
I don't know whether this is a bug or a feature, but the following syntax passes compilation, allowing you to modify an immutable instance of a struct:
Describe the bug
I don't know whether this is a bug or a feature, but the following syntax passes compilation, allowing you to modify an immutable instance of a struct:
Reproduction Steps
https://play.vlang.io/p/f79078e38a
Expected Behavior
Compilation error?
Current Behavior
Compiles and runs normally
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.9 5dd28cf
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: