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
Just noticed this. If you have a union type in a struct and you check msg.Has* for the different union types, they'll both return true if only one is set.
Hm. While in general the behavior of using the wrong union field is undefined, perhaps there should be more explicit checking. What does the C++ implementation do?
Just noticed this. If you have a union type in a struct and you check
msg.Has*
for the different union types, they'll both return true if only one is set.From the generated code:
The text was updated successfully, but these errors were encountered: