You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An interface that has an option field generates a C error when a struct which embeds another struct that implements the interface tries to access the option field.
C:/Users/imado/AppData/Local/Temp/v_0/test.16517445185759149149.tmp.c:519: warning: WINVER redefined
C:/Users/imado/AppData/Local/Temp/v_0/test.16517445185759149149.tmp.c:7361: warning: implicit declaration of function 'tcc_backtrace'
C:/Users/imado/AppData/Local/Temp/v_0/test.16517445185759149149.tmp.c:15044: warning: assignment from incompatible pointer type
C:/Users/imado/AppData/Local/Temp/v_0/test.16517445185759149149.tmp.c:15050: warning: assignment from incompatible pointer type
C:/Users/imado/AppData/Local/Temp/v_0/test.16517445185759149149.tmp.c:15056: warning: assignment from incompatible pointer type
C:/Users/imado/AppData/Local/Temp/v_0/test.16517445185759149149.tmp.c:15064: warning: assignment from incompatible pointer type
C:/Users/imado/AppData/Local/Temp/v_0/test.16517445185759149149.tmp.c:15090: warning: assignment from incompatible pointer type
C:/Users/imado/AppData/Local/Temp/v_0/test.16517445185759149149.tmp.c:15090: warning: assignment from incompatible pointer type
C:/Users/imado/AppData/Local/Temp/v_0/test.16517445185759149149.tmp.c:15110: warning: assignment from incompatible pointer type
C:/Users/imado/AppData/Local/Temp/v_0/test.16517445185759149149.tmp.c:15112: warning: assignment from incompatible pointer type
C:/Users/imado/AppData/Local/Temp/v_0/test.16517445185759149149.tmp.c:15112: warning: assignment from incompatible pointer type
C:/Users/imado/AppData/Local/Temp/v_0/test.16517445185759149149.tmp.c:15132: warning: assignment from incompatible pointer type
C:/Users/imado/AppData/Local/Temp/v_0/test.16517445185759149149.tmp.c:15313: error: field not found: duration
builder error:
==================
C error. This should never happen.
Describe the bug
An interface that has an option field generates a C error when a struct which embeds another struct that implements the interface tries to access the option field.
Reproduction Steps
Expected Behavior
Expected code to compile and print the object.
Current Behavior
C error:
Possible Solution
No response
Additional Information/Context
No response
V version
V full version: V 0.4.1 68cbf27.3fab321
Environment details (OS name and version, etc.)
Important
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: