structs containing references cannot be used in maps #20245
Labels
Bug
This tag is applied to issues which reports bugs.
Nicer V Errors
Bugs/feature requests, related to improving V error messages.
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
If a struct contains a reference and is used in a map the compiler always reports:
Reproduction Steps
Expected Behavior
The compiler should not raise a notice.
Current Behavior
An notice is raised.
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.3 ed754cf
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: