carray_to_varray inside unsafe block warns about requiring an unsafe block #21893
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: Checker
Bugs/feature requests, that are related to the type checker.
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
Describe the bug
A warning is emitted when carray_to_varray is used to convert an array of references.
Reproduction Steps
Expected Behavior
No warning when inside unsafe block.
Current Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.6 510500d
Environment details (OS name and version, etc.)
not relevant
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: