Files
kotlin-fork/compiler/testData/debug/localVariables/destructuringInLambdas.kt
T
2019-11-26 14:52:58 +03:00

20 lines
448 B
Kotlin
Vendored

//FILE: test.kt
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 }
}
// IGNORE_BACKEND: JVM_IR
// LOCAL VARIABLES
// TestKt:8:
// A:3: x:java.lang.String, y:int
// TestKt:8:
// TestKt:5: a:A, block:TestKt$box$1
// TestKt$box$1:8: $dstr$x$y:A
// TestKt$box$1.invoke(java.lang.Object)+8:
// TestKt:5: a:A, block:TestKt$box$1
// TestKt:8:
// TestKt:9: