Files
kotlin-fork/compiler/testData/codegen/box/reflection/call/bound/memberFunction.kt
T
2023-06-07 14:59:38 +00:00

13 lines
175 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_REFLECT
import kotlin.reflect.*
class C(val k: String) {
fun foo(s: String) = s + k
}
fun box(): String =
C("K")::foo.call("O")