KT-937 When loading array types from Java project them so that they are covariant
#KT-937 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package test;
|
||||
|
||||
public final class ArrayTypeVariance {
|
||||
public final Object[] toArray(Object[] p0) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
public class ArrayTypeVariance : java.lang.Object() {
|
||||
public fun toArray(p0: Array<out Any?>?): Array<Any?>? {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace test
|
||||
|
||||
public final class test.ArrayTypeVariance : java.lang.Object {
|
||||
public final /*constructor*/ fun <init>(): test.ArrayTypeVariance
|
||||
public final fun toArray(/*0*/ p0: jet.Array<out jet.Any?>?): jet.Array<jet.Any?>?
|
||||
}
|
||||
@@ -26,5 +26,5 @@ public open class test.ModalityOfFakeOverrides : java.util.AbstractList<jet.Stri
|
||||
public open override /*1*/ fun size(): jet.Int
|
||||
public open override /*1*/ fun subList(/*0*/ p0: jet.Int, /*1*/ p1: jet.Int): java.util.List<jet.String>?
|
||||
public open override /*1*/ fun toArray(): jet.Array<jet.Any?>?
|
||||
public open override /*1*/ fun </*0*/ T : jet.Any?>toArray(/*0*/ p0: jet.Array<T?>?): jet.Array<T?>?
|
||||
public open override /*1*/ fun </*0*/ T : jet.Any?>toArray(/*0*/ p0: jet.Array<out T?>?): jet.Array<T?>?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user