-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
Implement default type parameters #10483
Comments
The proposal says that this shouldn't work: This shouldn't: class A<B = C, C> Unfortunately, the only reason given is this TypeScript discussion: microsoft/TypeScript#2175 We'll have to figure out if this is actually a special case because we don't have any ordering constraints on, well, constraints, and I'm not sure why defaults would be different. |
I don't see why that should not be allowed in Haxe. |
That reminds me about the |
Good question... seems like that would make sense and be consistent, so we probably won't do it. |
I have no clue what I was thinking linking there, sorry. Reading this back some years later I think the reasoning for disallowing here was to avoid circular references. |
This has been implemented in #10518. We can track further issues separately. |
See HaxeFoundation/haxe-evolution#50
The text was updated successfully, but these errors were encountered: