-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
@:generic
leaks type parameters
#4599
Comments
Also unfortunately there's no way to call a |
Isn't this just another instance of #3033? |
It's not. This one has to do with |
It's probably the same as #3663. We expand |
It's not quite the same: #3663 is about inlining while generically expanding whereas this issue is about generically expanding while inlining. |
One solution for this might be to allow partial generic expansion. Basically, if we substitute a generic type parameter with a non-generic one, we absorb that type parameter into the new function and make the function This would require reapplying calls to generic functions, but I think this is exactly the same situation as |
The following code:
Will generate the following
-D dump
forTest.something
:That
somethingElse.T
comes from the abstract typeThe text was updated successfully, but these errors were encountered: