-
Notifications
You must be signed in to change notification settings - Fork 323
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
Java Enums cannot be used in case branches (but can in if statements) #7551
Comments
Another small issue related to this: As you can see the error message |
Fixes #7551 by looking up static symbols of a `JavaClass` polyglot object.
Jaroslav Tulach reports a new STANDUP for yesterday (2023-08-21): Progress: -
Next Day: More of Python Interop & TCK |
Currently, if I try to pattern match a Java
enum
:I get
I can convert the Enso code to:
and then it works:
Nonetheless, it would be nice if the Java
enum
s were also supported in regular pattern matching. It may be a bit surprising to users thatif
works butcase
does not.Of course this is lower priority, because most of our users won't be using Java polyglot as much and even less will care about enums. But it may be worth to improve this at some point.
The text was updated successfully, but these errors were encountered: