"expected type is not an enum" when assigning static method to anonymous function #19484
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: Parser
Bugs/feature requests, that are related to the V parser or syntax (*not* semantic ones).
Describe the bug
Setting an anonymous function variable to static methods is not allowed because the compiler thinks I'm trying to set the variable to an enum instead.
Reproduction Steps
Expected Behavior
Expected the code to compile and print
bar
.Current Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V full version: V 0.4.2 ae5b4bb.c030c5e
Environment details (OS name and version, etc.)
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: