Files
kotlin-fork/compiler/testData/codegen/asmLike/receiverMangling/inlineClassCapture.kt
T
2020-01-29 17:00:00 +01:00

26 lines
424 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// 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()