C error when on cast of struct with time.StopWatch to interface. #19497
Labels
Bug
This tag is applied to issues which reports bugs.
Build
V build error on any OS/CPU architecture.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Unit: vlib
Bugs/feature requests, that are related to the vlib.
Describe the bug
A C error is generated when you attempt to cast a struct that has a
time.StopWatch
field to an interface.Reproduction Steps
Expected Behavior
Expected code to compile and run with no output.
Current Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.2 ae5b4bb.6b79b2a
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: