42 lines
946 B
Plaintext
42 lines
946 B
Plaintext
trait A<in T> {}
|
|
trait B<T> : A<Int> {}
|
|
trait C<T> : <error>B<T>, A<T></error> {}
|
|
trait C1<T> : B<T>, A<Any> {}
|
|
trait D : <error>C<Boolean>, B<Double></error>{}
|
|
|
|
trait A1<out T> {}
|
|
trait B1 : A1<Int> {}
|
|
trait B2 : A1<Any>, B1 {}
|
|
|
|
trait BA1<T> {}
|
|
trait BB1 : BA1<Int> {}
|
|
trait BB2 : <error>BA1<Any>, BB1</error> {}
|
|
|
|
|
|
namespace x {
|
|
trait AA1<out T> {}
|
|
trait AB1 : AA1<Int> {}
|
|
trait AB3 : AA1<Comparable<Int>> {}
|
|
trait AB2 : AA1<Number>, AB1, AB3 {}
|
|
}
|
|
|
|
namespace x2 {
|
|
trait AA1<out T> {}
|
|
trait AB1 : AA1<Any> {}
|
|
trait AB3 : AA1<Comparable<Int>> {}
|
|
trait AB2 : <error>AA1<Number>, AB1, AB3</error> {}
|
|
}
|
|
|
|
namespace x3 {
|
|
trait AA1<in T> {}
|
|
trait AB1 : AA1<Any> {}
|
|
trait AB3 : AA1<Comparable<Int>> {}
|
|
trait AB2 : AA1<Number>, AB1, AB3 {}
|
|
}
|
|
|
|
namespace sx2 {
|
|
trait AA1<in T> {}
|
|
trait AB1 : AA1<Int> {}
|
|
trait AB3 : AA1<Comparable<Int>> {}
|
|
trait AB2 : <error>AA1<Number>, AB1, AB3</error> {}
|
|
} |