-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
cannot bitcast from enum to packed struct #18462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
errata: the other direction doesn't work either but its far easier to workaround with edit: I mention the result type because the workaround for this issue also requires going through an int temporary |
I would expect this to be an intentional extension of #3647 |
does that mean : ( alas no, I get |
I don't think so, packed structs are not ints despite being implemented as such. |
I think if #18882 (comment) is implemented then this starts to make a lot of sense |
Zig Version
0.12.0-dev.1828+225fe6ddb
Steps to Reproduce and Observed Behavior
Expected Behavior
success
The text was updated successfully, but these errors were encountered: