d757847ed6
These tests are checking the specifics of the class-generated lambdas.
18 lines
468 B
Kotlin
Vendored
18 lines
468 B
Kotlin
Vendored
// LAMBDAS: CLASS
|
|
|
|
data class A(val x: String, val y: Int)
|
|
|
|
fun foo(a: A, block: (A) -> String): String = block(a)
|
|
|
|
fun box() {
|
|
foo(A("O", 123)) { (x, y) -> x + y }
|
|
}
|
|
|
|
// METHOD : DestructuringInLambdasKt$box$1.invoke(LA;)Ljava/lang/String;
|
|
// VARIABLE : NAME=x TYPE=Ljava/lang/String; INDEX=2
|
|
// VARIABLE : NAME=y TYPE=I INDEX=3
|
|
// VARIABLE : NAME=this TYPE=LDestructuringInLambdasKt$box$1; INDEX=0
|
|
|
|
// JVM_TEMPLATES
|
|
// VARIABLE : NAME=$dstr$x$y TYPE=LA; INDEX=1
|