Files
kotlin-fork/js/js.translator/testData/box/callableReference/function/abstractClassMember.kt
T
2018-04-27 20:02:59 +03:00

14 lines
272 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1119
// This test was adapted from compiler/testData/codegen/box/callableReference/function/.
package foo
abstract class A {
abstract fun foo(): String
}
class B : A() {
override fun foo() = "OK"
}
fun box(): String = (A::foo)(B())