mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
25 lines
398 B
Kotlin
Vendored
25 lines
398 B
Kotlin
Vendored
// 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() |