Skip to content

Fix #4369: Add regression test #6442

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

Merged
merged 1 commit into from
May 3, 2019

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

@anatoliykmetyuk anatoliykmetyuk merged commit 2869bb3 into scala:master May 3, 2019
@anatoliykmetyuk anatoliykmetyuk deleted the fix-#4369 branch May 3, 2019 14:42
@anatoliykmetyuk
Copy link
Contributor

anatoliykmetyuk commented May 3, 2019

Are you sure #4369 is fixed? IMO the following shouldn't compile even with the method commented:

trait X[R <: Z, Z >: X[R, R]] {
  // def foo(x: X[R, R]): Z = x
}
class Z extends X[Z, Z]

From the issue:

Somehow this compiles, even though foo doesn't. Note that class Z is not a super type of X[Z, Z], which is required by the second type parameter of trait X.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants