Modifications to mutable slices affect non-mut arrays #19120
Labels
Bug
This tag is applied to issues which reports bugs.
Status: Confirmed
This bug has been confirmed to be valid by a contributor.
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
Unit: Type System
Bugs/feature requests, that are related to the V types system.
Describe the bug
Non-mut variables should not be modified
Expected Behavior
cannot declare a mut slice from a non-mut array
Current Behavior
Modifications to mutable slices affect non-mut arrays
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.0 3c26bff
Environment details (OS name and version, etc.)
The text was updated successfully, but these errors were encountered: