Files
kotlin-fork/compiler/testData/codegen/asmLike/receiverMangling/deepNoinline_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
408 B
Kotlin
Vendored

// !LANGUAGE: -NewCapturedReceiverFieldNamingConvention
// IR_DIFFERENCE
// LOCAL_VARIABLE_TABLE
// LAMBDAS: CLASS
fun String.foo(count: Int) {
val x = false
block {
val y = false
block {
val z = true
block {
this@foo + this@block.toString() + x + y + z + count
}
}
}
}
fun block(block: Long.() -> Unit) = 5L.block()