Revert "[NI] Prefer between two complex variables one with proper lower bounds"
This reverts commit ced8a92629.
This commit is contained in:
-16
@@ -1,16 +0,0 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface Out<out T>
|
||||
interface In<in T>
|
||||
interface Recursive<T : In<T>>
|
||||
|
||||
interface Specialized : In<Specialized>
|
||||
|
||||
class Parent : Specialized
|
||||
|
||||
fun <T : In<T>> foo(o: Out<T>): Recursive<T>? = null
|
||||
|
||||
fun test(o: Out<Parent>) {
|
||||
foo(o) ?: return
|
||||
}
|
||||
-35
@@ -1,35 +0,0 @@
|
||||
package
|
||||
|
||||
public fun </*0*/ T : In<T>> foo(/*0*/ o: Out<T>): Recursive<T>?
|
||||
public fun test(/*0*/ o: Out<Parent>): kotlin.Unit
|
||||
|
||||
public interface In</*0*/ in T> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface Out</*0*/ out T> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class Parent : Specialized {
|
||||
public constructor Parent()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface Recursive</*0*/ T : In<T>> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface Specialized : In<Specialized> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Reference in New Issue
Block a user