Files
kotlin/compiler/testData/codegen/box/callableReference/function/abstractClassMember.kt
2018-06-28 12:26:41 +02:00

11 lines
162 B
Kotlin
Vendored

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