mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
19 lines
291 B
Kotlin
Vendored
19 lines
291 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// NO_CHECK_LAMBDA_INLINING
|
|
// FILE: 1.kt
|
|
package test
|
|
|
|
inline fun test(p: String, s: () -> () -> String = { { p } }) =
|
|
s()
|
|
|
|
val same = test("O")
|
|
|
|
// FILE: 2.kt
|
|
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
val inlined = test("K")
|
|
return same() + inlined()
|
|
}
|