Cannot use optional in closure #19748
Labels
Bug
This tag is applied to issues which reports bugs.
Option Type
Bugs/feature requests, that are related to `?Type`.
Unit: Type System
Bugs/feature requests, that are related to the V types system.
Describe the bug
Using an optional in the closure bound variables results in a compiler error.
Reproduction Steps
Expected Behavior
No compiler error.
Current Behavior
Possible Solution
I can use a new variables to avoid this issue:
Additional Information/Context
No response
V version
V 0.4.2 48a1d6c
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: