Files
kotlin-fork/compiler/testData/codegen/boxInline/innerClasses/captureThisAndOuter.kt
T

12 lines
194 B
Kotlin
Vendored

// FILE: 1.kt
inline fun f(g: () -> String) = g()
// FILE: 2.kt
class A(val x: String) {
inner class B(val y: String) {
fun h() = f { x + y }
}
}
fun box() = A("O").B("K").h()