Files
kotlin-fork/compiler/testData/codegen/box/reflection/callBy/nullValue.kt
T

13 lines
197 B
Kotlin
Vendored

// 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"
}