bug overload operator when type is generic #20777
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://play.vlang.io/p/7bb26503ba
Reproduction Steps
Expected Behavior
result: true
Current Behavior
Output:
Possible Solution
No response
Additional Information/Context
See that it reports that it is not defined compared to the optional Timer type.
But that's not the problem, since in my
==
operator overload I'm not using theexp ?time.Time
field.the original code is:
If you change/add this section, everything works beautifully.
V version
V 0.4.4 212adfa
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: