Files
kotlin/compiler/testData/codegen/box/callableReference/function/abstractClassMember.kt
2019-11-19 11:00:09 +03:00

11 lines
166 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
abstract class A {
abstract fun foo(): String
}
class B : A() {
override fun foo() = "OK"
}
fun box(): String = (A::foo)(B())