-
Notifications
You must be signed in to change notification settings - Fork 66
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
warning 229 when view "enum struct" as an array #964
Comments
Enum structs can only be converted to "any[]". We could consider a rule where if the inner types are all the same, this kind of conversion would work. But it's a bit esoteric so I'd rather gauge interest/usefulness. |
How about only checking if the sizes of enum struct and array are equal? Similar to allowing the conversion between If such conversions are allowed, people can define their own |
Compiler version: 1.12.0.7134
A warning will be prompted when using
view_as
to convert anenum struct
to an array type other thanany[]
.The text was updated successfully, but these errors were encountered: