Files
kotlin/compiler/testData/codegen/boxWithStdlib/reflection/callBy/nullValue.kt
Alexander Udalov 593937d302 Support KCallable.callBy with map of parameters to arguments
callBy is able to handle optional parameters.

 #KT-8827 Fixed
2015-08-29 18:37:40 +03:00

11 lines
180 B
Kotlin
Vendored

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