blob: 11efea625e90c2dbba2f6af2436ca6a9c29a10e5 (
plain) (
tree)
|
|
class Foo[T <: U, U <: T] // error: cycle
class Bar[T >: T] // error: cycle
class A {
val x: T = ???
type T <: x.type // error: cycle
}
class B {
type T <: x.type // error: cycle
final val x: T = ???
}
class C {
final val x: D#T = ???
class D {
type T <: x.type // error: cycle
val z: x.type = ???
}
}
class E {
class F {
type T <: x.type // old-error: not stable
val z: x.type = ??? // old-error: not stable
}
lazy val x: F#T = ???
}
class T1 {
type X = (U, U) // error: cycle
type U = X & Int
}
class T2 {
type X = (U, U) // error: cycle
type U = X | Int
}
object T12 {
??? : (T1 {})#U // old-error: conflicting bounds
??? : (T2 {})#U // old-error: conflicting bounds
}
|