-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Wrong lower type bound is accepted #4369
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
This might be related to #4368 since encoding the above snippet using type members: trait X { self =>
type R <: Z
type Z >: X { type R = self.R; type Z = self.R }
}
class Foo extends X { type R = Foo; type Z = Foo } causes stack overflow. |
anatoliykmetyuk
added a commit
that referenced
this issue
May 3, 2019
Fix #4369: Add regression test
nicolasstucki
added a commit
that referenced
this issue
May 3, 2019
Revert "Fix #4369: Add regression test"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Somehow this compiles, even though
foo
doesn't. Note thatclass Z
is not a super type ofX[Z, Z]
, which is required by the second type parameter oftrait X
.The text was updated successfully, but these errors were encountered: