11 lines
170 B
Kotlin
Vendored
11 lines
170 B
Kotlin
Vendored
open class A {
|
|
fun foo() = "OK"
|
|
}
|
|
|
|
class B : A()
|
|
|
|
fun box(): String {
|
|
val foo = B::class.members.single { it.name == "foo" }
|
|
return foo.call(B()) as String
|
|
}
|