drop covariant specialisation for supertypes

This commit is contained in:
Dmitry Jemerov
2015-04-10 18:35:15 +02:00
committed by Andrey Breslav
parent 9de5acf9a6
commit 991db29731
5 changed files with 19 additions and 89 deletions
@@ -1,12 +1,12 @@
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 C1<T> : <error>B<T>, A<Any></error> {}
trait D : <error><error>C<Boolean>, B<Double></error></error>{}
trait A1<out T> {}
trait B1 : A1<Int> {}
trait B2 : A1<Any>, B1 {}
trait B2 : <error>A1<Any>, B1</error> {}
trait BA1<T> {}
trait BB1 : BA1<Int> {}
@@ -17,7 +17,7 @@ trait BB2 : <error>BA1<Any>, BB1</error> {}
trait xAA1<out T> {}
trait xAB1 : xAA1<Int> {}
trait xAB3 : xAA1<Comparable<Int>> {}
trait xAB2 : xAA1<Number>, xAB1, xAB3 {}
trait xAB2 : <error>xAA1<Number>, xAB1, xAB3</error> {}
//}
//package x2 {
@@ -31,7 +31,7 @@ trait BB2 : <error>BA1<Any>, BB1</error> {}
trait x3AA1<in T> {}
trait x3AB1 : x3AA1<Any> {}
trait x3AB3 : x3AA1<Comparable<Int>> {}
trait x3AB2 : x3AA1<Number>, x3AB1, x3AB3 {}
trait x3AB2 : <error>x3AA1<Number>, x3AB1, x3AB3</error> {}
//}
//package sx2 {