-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
Extended EnumFlags #10981
Comments
I have supported (1) and (3). |
Ping @Simn |
This seems very related to #2786. In fact, I don't immediately see how the case here is any different. |
Ok, so the difference is that in #2786 the operands are typed as the abstract itself, whereas here it's a different type. We already type the operands against the expected type, but that doesn't mean that they become the expected type. What you're asking for would be the equivalent of processing this as |
Yeah I would find that behaviour quite strange. How would you deal with ambiguities, e.g. an |
I'm fine if we don't unify if there's ambiguous choices. |
Any update on this @Simn ? :) |
I'm quite worried that this will good for the simple EnumFlags example, but is going to cause strange behavior in the real world. But I suppose the best way to find that out is to implement it. |
The current standard definition of haxe.EnumFlags is a bit dated, and should be updated to allow the following:
The text was updated successfully, but these errors were encountered: