-
Notifications
You must be signed in to change notification settings - Fork 1.7k
support covariant parameter overrides #27353
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
Labels
Comments
oops, need to fix tear-offs as well |
note: current behavior for tear-offs is sound, but more restrictive than it could be. |
Actually I'll open a different bug for tear off type. |
and that bug is #27484 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@checked
for declaring a parameter as covariant was recently added to Analyzer, but we don't support this in DDC code generation, so it's a soundness problem until we fix it.Note we also have a problem with generic types: #27259, however that one is a tad different. It is attempting to optimize covariant checks to only appear for parameters when necessary, but the optimization is what gets us into trouble.
The text was updated successfully, but these errors were encountered: