Files
kotlin-fork/compiler/testData/codegen/boxInline/anonymousObject/sam/kt17091.kt
T
2021-02-02 17:53:52 +03:00

20 lines
302 B
Kotlin
Vendored

// FULL_JDK
// TARGET_BACKEND: JVM
// FILE: 1.kt
package test
inline fun foo(value: String, crossinline s: () -> String): String {
val x = { value }
return java.util.concurrent.Callable(x).call() + { s() }()
}
// FILE: 2.kt
import test.*
fun box(): String {
return foo("O") { "K" }
}