Files
kotlin-fork/js/js.translator/testData/box/callableReference/function/abstractClassMember.kt
T
2018-04-19 13:17:28 +03:00

15 lines
297 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// 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())