blob: 31e6f2c1dfb13dd54556c5fa84ffb161221edbed [file]
// RUN_PIPELINE_TILL: FRONTEND
// ISSUE: KT-65058
open class A {
protected fun foo() {
}
}
<!NOTHING_TO_INLINE!>inline<!> fun bar() = object : A() {
fun baz() {
foo()
this.foo()
val receiver: A = this
receiver.<!INVISIBLE_REFERENCE, PROTECTED_CALL_FROM_PUBLIC_INLINE_ERROR!>foo<!>()
val receiver2 = this
receiver2.foo()
}
}
/* GENERATED_FIR_TAGS: anonymousObjectExpression, classDeclaration, functionDeclaration, inline, localProperty,
propertyDeclaration, thisExpression */