Generic struct can't be used as shared
method parameter
#19804
Labels
Bug
This tag is applied to issues which reports bugs.
Generics[T]
Bugs/feature requests, that are related to the V generics.
Unit: Parser
Bugs/feature requests, that are related to the V parser or syntax (*not* semantic ones).
Describe the bug
The error will be thrown if you will try to have a method with a generic struct parameter marked as
shared
. This shouldn't produce any error.Reproduction Steps
Expected Behavior
No error, console outputs
0
Current Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.2 fae46a8
Environment details (OS name and version, etc.)
Playground
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: