We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i32[] array = { .color.Red = .., .color.Green = .., }
currently not possible
The text was updated successfully, but these errors were encountered:
Hello again, I might be confusing something, but it looks like it does work. This currently compiles and runs:
module test; import stdio; type Color enum i32 { Red, Green, Blue, } public fn i32 main() { char[] arr = { [Color.Red] = 'R', [Color.Green] = 'G', [Color.Blue] = 'B', } stdio.printf("hello world %c\n", arr[Color.Blue]); return 0; }
Am I missing something?
Sorry, something went wrong.
Yes it is indeed fixed! I'll close this issue :)
No branches or pull requests
i32[] array = {
.color.Red = ..,
.color.Green = ..,
}
currently not possible
The text was updated successfully, but these errors were encountered: