FIR: use typeWithStarProjections for protected visibility check
This commit is contained in:
committed by
TeamCityServer
parent
a14a00809f
commit
881b15a677
@@ -0,0 +1,10 @@
|
||||
// FIR_IDENTICAL
|
||||
abstract class Parent<F> {
|
||||
protected fun foo() {}
|
||||
}
|
||||
|
||||
class Derived<E> : Parent<E>() {
|
||||
fun bar(x: Derived<String>) {
|
||||
x.foo()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package
|
||||
|
||||
public final class Derived</*0*/ E> : Parent<E> {
|
||||
public constructor Derived</*0*/ E>()
|
||||
public final fun bar(/*0*/ x: Derived<kotlin.String>): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
protected final override /*1*/ /*fake_override*/ fun foo(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public abstract class Parent</*0*/ F> {
|
||||
public constructor Parent</*0*/ F>()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
protected final fun foo(): kotlin.Unit
|
||||
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