A struct with an option field of type interface doesn't accept none as value #21507
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: Checker
Bugs/feature requests, that are related to the type checker.
Describe the bug
Code: https://play.vlang.io/p/c83cdab448
Reproduction Steps
The code presented doesn't compile with error:
none
doesn't implement methodtest
of interfaceTestIntf
Expected Behavior
Code compiles
Current Behavior
Output:
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.5 58a8fc6
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: