Files
kotlin-fork/compiler/testData/codegen/asmLike/receiverMangling/inlineClassCapture.kt
T

27 lines
416 B
Kotlin
Vendored

// IR_DIFFERENCE
// LOCAL_VARIABLE_TABLE
class Foo {
fun foo() {
block {
this@Foo
}
}
inner class Bar {
fun bar() {
block {
this@Foo
this@Bar
block {
this@Foo
this@Bar
}
}
}
}
}
inline fun block(block: () -> Unit) = block()