Change default upper bound of Java type parameters to Any!
#KT-7672 Fixed
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
public /*synthesized*/ fun </*0*/ T> Comparator(/*0*/ function: (T!, T!) -> kotlin.Int): test.Comparator<T>
|
||||
public /*synthesized*/ fun </*0*/ T : kotlin.Any!> Comparator(/*0*/ function: (T!, T!) -> kotlin.Int): test.Comparator<T>
|
||||
|
||||
public interface Comparator</*0*/ T> {
|
||||
public interface Comparator</*0*/ T : kotlin.Any!> {
|
||||
public abstract fun compare(/*0*/ p0: T!, /*1*/ p1: T!): kotlin.Int
|
||||
}
|
||||
|
||||
@@ -10,12 +10,12 @@ public interface SamSubinterfaceOfTwo {
|
||||
public abstract fun f(): kotlin.CharSequence!
|
||||
}
|
||||
|
||||
public interface Super2</*0*/ T> {
|
||||
public interface Super2</*0*/ T : kotlin.Any!> {
|
||||
public abstract fun f(): T!
|
||||
}
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ fun Sub(/*0*/ function: () -> kotlin.String!): test.SamSubinterfaceOfTwo.Sub
|
||||
public final /*synthesized*/ fun Super1(/*0*/ function: () -> kotlin.CharSequence!): test.SamSubinterfaceOfTwo.Super1
|
||||
public final /*synthesized*/ fun </*0*/ T> Super2(/*0*/ function: () -> T!): test.SamSubinterfaceOfTwo.Super2<T>
|
||||
public final /*synthesized*/ fun </*0*/ T : kotlin.Any!> Super2(/*0*/ function: () -> T!): test.SamSubinterfaceOfTwo.Super2<T>
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
public open class TypeParameterOfClass</*0*/ T> {
|
||||
public constructor TypeParameterOfClass</*0*/ T>()
|
||||
public open class TypeParameterOfClass</*0*/ T : kotlin.Any!> {
|
||||
public constructor TypeParameterOfClass</*0*/ T : kotlin.Any!>()
|
||||
public final /*synthesized*/ fun foo(/*0*/ p0: ((T!, T!) -> kotlin.Int)!): kotlin.Unit
|
||||
public open fun foo(/*0*/ p0: java.util.Comparator<T!>!): kotlin.Unit
|
||||
}
|
||||
|
||||
+2
-2
@@ -4,8 +4,8 @@ public open class TypeParameterOfMethod {
|
||||
public constructor TypeParameterOfMethod()
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ fun </*0*/ T> max(/*0*/ p0: ((T!, T!) -> kotlin.Int)!, /*1*/ p1: T!, /*2*/ p2: T!): T!
|
||||
public open fun </*0*/ T> max(/*0*/ p0: java.util.Comparator<T!>!, /*1*/ p1: T!, /*2*/ p2: T!): T!
|
||||
public final /*synthesized*/ fun </*0*/ T : kotlin.Any!> max(/*0*/ p0: ((T!, T!) -> kotlin.Int)!, /*1*/ p1: T!, /*2*/ p2: T!): T!
|
||||
public open fun </*0*/ T : kotlin.Any!> max(/*0*/ p0: java.util.Comparator<T!>!, /*1*/ p1: T!, /*2*/ p2: T!): T!
|
||||
public final /*synthesized*/ fun </*0*/ T : kotlin.CharSequence!> max2(/*0*/ p0: ((T!, T!) -> kotlin.Int)!, /*1*/ p1: T!, /*2*/ p2: T!): T!
|
||||
public open fun </*0*/ T : kotlin.CharSequence!> max2(/*0*/ p0: java.util.Comparator<T!>!, /*1*/ p1: T!, /*2*/ p2: T!): T!
|
||||
public final /*synthesized*/ fun </*0*/ A : kotlin.CharSequence!, /*1*/ B : kotlin.(Mutable)List<A!>!> method(/*0*/ p0: ((A!, A!) -> kotlin.Int)!, /*1*/ p1: B!): kotlin.Unit
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
public open class TypeParameterOfOuterClass</*0*/ T> {
|
||||
public constructor TypeParameterOfOuterClass</*0*/ T>()
|
||||
public open class TypeParameterOfOuterClass</*0*/ T : kotlin.Any!> {
|
||||
public constructor TypeParameterOfOuterClass</*0*/ T : kotlin.Any!>()
|
||||
|
||||
public open inner class Inner {
|
||||
public constructor Inner()
|
||||
|
||||
+2
-2
@@ -12,7 +12,7 @@ public interface InheritedSameAdaptersWithSubstitution {
|
||||
public abstract fun foo(/*0*/ p0: java.util.Comparator<kotlin.String!>!): kotlin.Unit
|
||||
}
|
||||
|
||||
public interface Super2</*0*/ T> {
|
||||
public interface Super2</*0*/ T : kotlin.Any!> {
|
||||
public final /*synthesized*/ fun foo(/*0*/ p0: ((T!, T!) -> kotlin.Int)!): kotlin.Unit
|
||||
public abstract fun foo(/*0*/ p0: java.util.Comparator<T!>!): kotlin.Unit
|
||||
}
|
||||
@@ -25,6 +25,6 @@ public interface InheritedSameAdaptersWithSubstitution {
|
||||
// Static members
|
||||
public final /*synthesized*/ fun Sub(/*0*/ function: (java.util.Comparator<kotlin.String!>!) -> kotlin.Unit): test.InheritedSameAdaptersWithSubstitution.Sub
|
||||
public final /*synthesized*/ fun Super1(/*0*/ function: (java.util.Comparator<kotlin.String!>!) -> kotlin.Unit): test.InheritedSameAdaptersWithSubstitution.Super1
|
||||
public final /*synthesized*/ fun </*0*/ T> Super2(/*0*/ function: (java.util.Comparator<T!>!) -> kotlin.Unit): test.InheritedSameAdaptersWithSubstitution.Super2<T>
|
||||
public final /*synthesized*/ fun </*0*/ T : kotlin.Any!> Super2(/*0*/ function: (java.util.Comparator<T!>!) -> kotlin.Unit): test.InheritedSameAdaptersWithSubstitution.Super2<T>
|
||||
public final /*synthesized*/ fun Super2Substituted(/*0*/ function: (java.util.Comparator<kotlin.String!>!) -> kotlin.Unit): test.InheritedSameAdaptersWithSubstitution.Super2Substituted
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user