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

12 lines
248 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_REFLECT
class A(val result: String = "OK") {
fun foo(x: Int = 42): String {
assert(x == 42) { x }
return result
}
}
fun box(): String = A::foo.callBy(mapOf(A::foo.parameters.first() to A()))