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

19 lines
416 B
Kotlin
Vendored

// !LANGUAGE: -NewCapturedReceiverFieldNamingConvention
// IGNORE_BACKEND: JVM_IR
// LOCAL_VARIABLE_TABLE
fun String.foo(count: Int) {
val x = false
block b1@ {
val y = false
block b2@ {
val z = true
block b3@ {
this@foo + this@b1 + this@b2 + this@b3 + x + y + z + count
}
}
}
}
fun block(block: Long.() -> Unit) = 5L.block()