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

12 lines
249 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_REFLECT
import kotlin.test.assertEquals
fun String.extFun(k: String, s: String = "") = this + k + s
fun box(): String {
val sExtFun = "O"::extFun
return sExtFun.callBy(mapOf(sExtFun.parameters[0] to "K"))
}