Files
kotlin-fork/compiler/testData/codegen/asmLike/receiverMangling/inlineClassCapture.kt
T
2024-02-23 23:59:13 +01:00

28 lines
444 B
Kotlin
Vendored

// IR_DIFFERENCE
// INLINE_SCOPES_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()