[FIR] Implement INCONSISTENT_TYPE_PARAMETER_VALUES, INCONSISTENT_TYPE_PARAMETER_BOUNDS
This commit is contained in:
committed by
teamcityserver
parent
ec20f52707
commit
92d7a61b4f
+9
-9
@@ -1,42 +1,42 @@
|
||||
interface A<in T> {}
|
||||
interface B<T> : A<Int> {}
|
||||
interface C<T> : B<T>, A<T> {}
|
||||
interface C1<T> : B<T>, A<Any> {}
|
||||
interface D : C<Boolean>, B<Double>{}
|
||||
interface C<T> : <error descr="[INCONSISTENT_TYPE_PARAMETER_VALUES] Type parameter T of 'A' has inconsistent values: kotlin/Int, T">B<T>, A<T></error> {}
|
||||
interface C1<T> : <error descr="[INCONSISTENT_TYPE_PARAMETER_VALUES] Type parameter T of 'A' has inconsistent values: kotlin/Int, kotlin/Any">B<T>, A<Any></error> {}
|
||||
interface D : <error descr="[INCONSISTENT_TYPE_PARAMETER_VALUES] Type parameter T of 'A' has inconsistent values: kotlin/Int, kotlin/Boolean"><error descr="[INCONSISTENT_TYPE_PARAMETER_VALUES] Type parameter T of 'B' has inconsistent values: kotlin/Boolean, kotlin/Double">C<Boolean>, B<Double></error></error>{}
|
||||
|
||||
interface A1<out T> {}
|
||||
interface B1 : A1<Int> {}
|
||||
interface B2 : A1<Any>, B1 {}
|
||||
interface B2 : <error descr="[INCONSISTENT_TYPE_PARAMETER_VALUES] Type parameter T of 'A1' has inconsistent values: kotlin/Any, kotlin/Int">A1<Any>, B1</error> {}
|
||||
|
||||
interface BA1<T> {}
|
||||
interface BB1 : BA1<Int> {}
|
||||
interface BB2 : BA1<Any>, BB1 {}
|
||||
interface BB2 : <error descr="[INCONSISTENT_TYPE_PARAMETER_VALUES] Type parameter T of 'BA1' has inconsistent values: kotlin/Any, kotlin/Int">BA1<Any>, BB1</error> {}
|
||||
|
||||
|
||||
//package x {
|
||||
interface xAA1<out T> {}
|
||||
interface xAB1 : xAA1<Int> {}
|
||||
interface xAB3 : xAA1<Comparable<Int>> {}
|
||||
interface xAB2 : xAA1<Number>, xAB1, xAB3 {}
|
||||
interface xAB2 : <error descr="[INCONSISTENT_TYPE_PARAMETER_VALUES] Type parameter T of 'xAA1' has inconsistent values: kotlin/Number, kotlin/Int, kotlin/Comparable<kotlin/Int>">xAA1<Number>, xAB1, xAB3</error> {}
|
||||
//}
|
||||
|
||||
//package x2 {
|
||||
interface x2AA1<out T> {}
|
||||
interface x2AB1 : x2AA1<Any> {}
|
||||
interface x2AB3 : x2AA1<Comparable<Int>> {}
|
||||
interface x2AB2 : x2AA1<Number>, x2AB1, x2AB3 {}
|
||||
interface x2AB2 : <error descr="[INCONSISTENT_TYPE_PARAMETER_VALUES] Type parameter T of 'x2AA1' has inconsistent values: kotlin/Number, kotlin/Any, kotlin/Comparable<kotlin/Int>">x2AA1<Number>, x2AB1, x2AB3</error> {}
|
||||
//}
|
||||
|
||||
//package x3 {
|
||||
interface x3AA1<in T> {}
|
||||
interface x3AB1 : x3AA1<Any> {}
|
||||
interface x3AB3 : x3AA1<Comparable<Int>> {}
|
||||
interface x3AB2 : x3AA1<Number>, x3AB1, x3AB3 {}
|
||||
interface x3AB2 : <error descr="[INCONSISTENT_TYPE_PARAMETER_VALUES] Type parameter T of 'x3AA1' has inconsistent values: kotlin/Number, kotlin/Any, kotlin/Comparable<kotlin/Int>">x3AA1<Number>, x3AB1, x3AB3</error> {}
|
||||
//}
|
||||
|
||||
//package sx2 {
|
||||
interface sx2AA1<in T> {}
|
||||
interface sx2AB1 : sx2AA1<Int> {}
|
||||
interface sx2AB3 : sx2AA1<Comparable<Int>> {}
|
||||
interface sx2AB2 : sx2AA1<Number>, sx2AB1, sx2AB3 {}
|
||||
interface sx2AB2 : <error descr="[INCONSISTENT_TYPE_PARAMETER_VALUES] Type parameter T of 'sx2AA1' has inconsistent values: kotlin/Number, kotlin/Int, kotlin/Comparable<kotlin/Int>">sx2AA1<Number>, sx2AB1, sx2AB3</error> {}
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user