You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
traitX[R<:Z, Z>:X[R, R]] {
// def foo(x: X[R, R]): Z = x
}
classZextendsX[Z, Z]
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.