Files
kotlin-fork/compiler/testData/codegen/asmLike/receiverMangling/mangledNames.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

20 lines
329 B
Kotlin
Vendored

// IR_DIFFERENCE
// LOCAL_VARIABLE_TABLE
// LAMBDAS: CLASS
fun foo() {
t { (`a b`, `b$c`, `c-d`, `b$$c--d`, `a()§&*&^@あ化`) -> }
}
private fun t(block: (Arr) -> Unit) {
block(Arr())
}
private data class Arr(
val a1: Int = 0,
val a2: Int = 0,
val a3: Int = 0,
val a4: Int = 0,
val a5: Int = 0
)