-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Unsoundness due to missing variance checks for extends clause #2973
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
Comments
In #3856 I argue that this should compile, and the other way, i.e. class Foo[-T]
class Bar[T] extends Foo[T] shouldn't. |
@TomasMikula Added some comments on your idea; TLDR I agree with @smarter, for details see in #3856. |
Blaisorblade
pushed a commit
to dotty-staging/dotty
that referenced
this issue
Mar 1, 2018
@odersky I see a fix for this issue authored by you in https://github.com/dotty-staging/dotty/commits/fix-%232973 but no corresponding PR, did you forget to open the PR? |
Blaisorblade
pushed a commit
to dotty-staging/dotty
that referenced
this issue
Aug 11, 2018
Blaisorblade
pushed a commit
to dotty-staging/dotty
that referenced
this issue
Aug 26, 2018
Blaisorblade
added a commit
that referenced
this issue
Aug 26, 2018
Fix #2973: Check variances of class parents
Blaisorblade
added a commit
to dotty-staging/dotty
that referenced
this issue
Aug 26, 2018
Blaisorblade
added a commit
to dotty-staging/dotty
that referenced
this issue
Aug 26, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This shouldn't compile:
scalac realises that:
The text was updated successfully, but these errors were encountered: