(only when optional) type checking fails, when the type is an array of a sumtype #19917
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Describe the bug
Code: https://vosca.dev/p/eaa0c6455a
Reproduction Steps
https://vosca.dev/p/eaa0c6455a
Expected Behavior
[code.v:10] x: Option(TType([1, 2]))
Current Behavior
Output:
Possible Solution
No response
Additional Information/Context
If the variable is not optional, the check works perfectly.
try changing line 10 to as it is below and it will work...
x := teste()?
V version
V 0.4.3 c3cf9ee
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: