Pointer operations must be wrapped in unsafe
#19819
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: Type System
Bugs/feature requests, that are related to the V types system.
Describe the bug
The code below shows how to mutate variable that wasn't marked as
mut
. Since V is considered to be a secure language, pointer operations like below must be wrapped inunsafe
block so it will be clear for end programmer what is going onReproduction Steps
Expected Behavior
Outputs warning, outputs 1
Current Behavior
No warning, outputs 1
Possible Solution
No response
Additional Information/Context
No response
V version
0.4.2
Environment details (OS name and version, etc.)
Unrelated
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: