Files
kotlin-fork/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668.kt
T
2019-08-08 12:02:50 +02:00

32 lines
419 B
Kotlin
Vendored

// 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()
}