mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
16 lines
271 B
Kotlin
Vendored
16 lines
271 B
Kotlin
Vendored
// NO_CHECK_LAMBDA_INLINING
|
|
// FILE: 1.kt
|
|
package test
|
|
|
|
inline fun foo(unused: Long, x: () -> String, y: () -> String, z: () -> String = { "" }) =
|
|
x() + y() + z()
|
|
|
|
|
|
// FILE: 2.kt
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
val O = "O"
|
|
return foo(1L, { O }, { "K" })
|
|
}
|