Files
kotlin-fork/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/kt8668_nested.kt
T
2022-07-14 23:24:18 +02:00

15 lines
246 B
Kotlin
Vendored

// FILE: 1.kt
package test
class C(val x: String) {
fun f(y: String) = C(y).g { x }
inline fun g(crossinline h: () -> String) =
{ { h() + x }.let { it() } }.let { it() }
}
// FILE: 2.kt
import test.*
fun box() = C("O").f("K")