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
Currently it's possible to use C structs that have union members through definition of multiple variants of the same struct and casting between them. This is a bit sub-optimal from the boilerplate point of view and it would be nice to have something more user friendly in this area.
The text was updated successfully, but these errors were encountered:
Hello,
I am currently facing this issue; where I need to create a struct with a union as a member. Can you please provide a code of what you're describing above?
Thanks in advance
Actually, I have encountered an issue. It seems to be the same as #555.
This is the thrown error: [error] scala.scalanative.util.UnsupportedException: can't cast from Array(Byte,2) to Array(Class(Top(java.lang.Object)),0)
Currently it's possible to use C structs that have union members through definition of multiple variants of the same struct and casting between them. This is a bit sub-optimal from the boilerplate point of view and it would be nice to have something more user friendly in this area.
The text was updated successfully, but these errors were encountered: