Uncaught type checking error with options and pointers #19555
Labels
Bug
This tag is applied to issues which reports bugs.
Build
V build error on any OS/CPU architecture.
Option Type
Bugs/feature requests, that are related to `?Type`.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Describe the bug
When running this code, I get a compiler error with the C backend.
Reproduction Steps
run this code:
Expected Behavior
Printout:
Current Behavior
Possible Solution
It isn't seeing that the struct accepts a ?&MyType, not a ?MyType. Sema might not catch this type discrepancy.
Additional Information/Context
No response
V version
V 0.4.2 11e67a1
Environment details (OS name and version, etc.)
Windows 11
V originally installed from Scoop, but updated using
v up
.Note
You can vote for this issue using the 👍 reaction. More votes increase the issue's priority for developers.
Take into account that only the 👍 reaction counts as a vote.
Only reactions to the issue itself will be counted as votes, not comments.
The text was updated successfully, but these errors were encountered: