Fixed inline call arguments evaluation + test
This commit is contained in:
committed by
Igor Chevdar
parent
cf5e6dac80
commit
295f71a29c
@@ -0,0 +1,15 @@
|
||||
package codegen.inline.lambdaInDefaultValue
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
inline fun inlineFun(param: String, lambda: (String) -> String = { it }): String {
|
||||
return lambda(param)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return inlineFun("OK")
|
||||
}
|
||||
|
||||
@Test fun runTest() {
|
||||
println(box())
|
||||
}
|
||||
Reference in New Issue
Block a user