Files
kotlin-fork/compiler/testData/codegen/boxMultiFile/protectedFromLambda.kt
T
Alexander Udalov e0b6f12737 Migrate boxMultiFile and boxMultifileClass tests to new multi-file tests
AbstractCompileKotlinAgainstMultifileKotlinTest is broken in this commit; will
be fixed later
2016-02-27 15:40:03 +03:00

28 lines
374 B
Kotlin
Vendored

// FILE: A.kt
package first
open class A {
protected open fun test(): String = "FAIL (A)"
}
fun box() = second.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"
}