Files
kotlin-fork/compiler/testData/codegen/asmLike/receiverMangling/deepNoinlineWithLabels_before.kt
T
Alexander Udalov 163afc94bc JVM: prepare asmLike tests for indy lambdas by default
Use -Xlambdas=class in tests which were checking specific things related
to how anonymous classes for lambdas work (such as receiver mangling,
function arity etc.)
2023-04-28 21:34:19 +00:00

21 lines
426 B
Kotlin
Vendored

// !LANGUAGE: -NewCapturedReceiverFieldNamingConvention
// IR_DIFFERENCE
// LOCAL_VARIABLE_TABLE
// LAMBDAS: CLASS
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()