Fixed inline call arguments evaluation + test

This commit is contained in:
Igor Chevdar
2018-01-21 23:28:19 +03:00
committed by Igor Chevdar
parent cf5e6dac80
commit 295f71a29c
4 changed files with 23 additions and 3 deletions
@@ -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())
}