cgen error produced for assigning a cast of an optional fn type value #22284
Labels
Bug
This tag is applied to issues which reports bugs.
Option Type
Bugs/feature requests, that are related to `?Type`.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
V doctor:
What did you do?
./v -g -o vdbg cmd/v && ./vdbg casting_to_option_fn_type.v
What did you expect to see?
a compiled program
What did you see instead?
Note: discovered while testing #22280 , I am not sure, if it is directly related or another bug.
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: