Files
kotlin-fork/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668.kt
T
2018-06-28 12:26:41 +02:00

33 lines
445 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// FILE: 1.kt
package test
class A {
fun callK(): String {
return "K"
}
fun callO(): String {
return "O"
}
fun testCall(): String = test { callO() }
inline fun test(crossinline l: () -> String): String {
return {
l() + callK()
}()
}
}
// FILE: 2.kt
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
return A().testCall()
}