-
-
Notifications
You must be signed in to change notification settings - Fork 672
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
Compiler panics when using unary - on enum #4706
Comments
Here's a smaller (and slightly better motivated, perhaps) example that fails with a similar error: Side :: enum {
Top = 1,
Bottom = -1,
}
main :: proc() {
side: Side
side = -side
} |
I'm not familiar with the codebase, but if anyone is in my situation and wants a temporary (probably incorrect) patch to get around the issue (for now), here it is
|
prescientmoon
changed the title
Panic: unhandled type ...
Compiler panics when using unary - on enum
Jan 18, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
Expected Behavior
The following code should compile
Current Behavior
Running
odin run repro
yields the following errorThe text was updated successfully, but these errors were encountered: