[FIR] Exclude class type arguments checks for type parameters from outer functions
#KT-63577
This commit is contained in:
committed by
Space Team
parent
ff76837d35
commit
dc578b1c5f
@@ -10,6 +10,9 @@ fun f2() = <!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>Map.Entry<!>::hashCode
|
||||
|
||||
class Outer<T> {
|
||||
inner class Inner
|
||||
class NotInner
|
||||
}
|
||||
|
||||
fun f3() = <!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>Outer.Inner<!>::hashCode
|
||||
|
||||
fun f4() = Outer.NotInner::hashCode
|
||||
|
||||
@@ -3,6 +3,7 @@ package
|
||||
public fun f1(): kotlin.reflect.KFunction1<kotlin.collections.Map<*, *>, kotlin.Int>
|
||||
public fun f2(): kotlin.reflect.KFunction1<kotlin.collections.Map.Entry<*, *>, kotlin.Int>
|
||||
public fun f3(): kotlin.reflect.KFunction1<Outer<*>.Inner, kotlin.Int>
|
||||
public fun f4(): kotlin.reflect.KFunction1<Outer.NotInner, kotlin.Int>
|
||||
|
||||
public final class Outer</*0*/ T> {
|
||||
public constructor Outer</*0*/ T>()
|
||||
@@ -16,4 +17,12 @@ public final class Outer</*0*/ T> {
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class NotInner {
|
||||
public constructor NotInner()
|
||||
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