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

14 lines
220 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_REFLECT
import kotlin.test.assertNull
fun foo(x: String? = "Fail") {
assertNull(x)
}
fun box(): String {
::foo.callBy(mapOf(::foo.parameters.single() to null))
return "OK"
}