How to set the field of a union? #3176
Unanswered
eladmaimoni
asked this question in
Q&A
Replies: 1 comment
-
Ok, I managed to get this to compile:
but would love to get some feedback on how to do this properly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following generated code:
I tried various ways to set it, following the official docs and code I found online. all of them fail.
This is one of my attempts:
which says:
other methods I tried don't work either.
any help?
Beta Was this translation helpful? Give feedback.
All reactions