Files
kotlin-fork/compiler/testData/codegen/box/syntheticAccessors/protectedFromLambda.kt
T

29 lines
383 B
Kotlin
Vendored

// FILE: A.kt
package first
import second.C
open class A {
protected open fun test(): String = "FAIL (A)"
}
fun box() = C().value()
// FILE: B.kt
// See also KT-8344: INVOKESPECIAL instead of INVOKEVIRTUAL in accessor
package second
import first.A
public abstract class B(): A() {
val value = {
test()
}
}
class C: B() {
override fun test() = "OK"
}