mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
16 lines
308 B
Kotlin
Vendored
16 lines
308 B
Kotlin
Vendored
// FILE: 1.kt
|
|
package test
|
|
|
|
inline fun inlineFun(capturedParam: String, noinline lambda: () -> String = { capturedParam }): String {
|
|
return call(lambda)
|
|
}
|
|
|
|
fun call(lambda: () -> String ) = lambda()
|
|
|
|
// FILE: 2.kt
|
|
//NO_CHECK_LAMBDA_INLINING
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
return inlineFun("OK")
|
|
} |