Files
kotlin-fork/compiler/testData/codegen/boxInline/anonymousObject/sam/samOnCallSite.kt
T
Mark Punzalan 348ba3e08c [FIR] Enable BlackBoxInlineCodegen tests for FIR.
16 out of 638 tests (2.5%) are currently failing.
2020-09-29 10:21:21 +03:00

27 lines
398 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// FILE: 1.kt
// FULL_JDK
package test
inline fun doWork(job: ()-> Unit) {
job()
}
// FILE: 2.kt
//NO_CHECK_LAMBDA_INLINING
import test.*
import java.util.concurrent.Executors
fun box() : String {
var result = "fail"
doWork {
val job = { result = "OK" }
Executors.callable(job).call()
}
return result
}