[IR] More extensive LVT tests around destructuring
All tests in this commit _pass_ to document existing behavior, but this will change in a separate commit as we reflect desired behavior in the test expectations.
This commit is contained in:
committed by
Alexander Udalov
parent
9b44c73f54
commit
b81139ad36
@@ -0,0 +1,34 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// FILE: test.kt
|
||||
fun box(): String {
|
||||
val p = "O" to "K"
|
||||
|
||||
val
|
||||
(
|
||||
o
|
||||
,
|
||||
k
|
||||
)
|
||||
=
|
||||
p
|
||||
|
||||
return o + k
|
||||
}
|
||||
|
||||
// EXPECTATIONS
|
||||
// test.kt:6 box:
|
||||
|
||||
// EXPECTATIONS JVM
|
||||
// test.kt:15 box: p:kotlin.Pair=kotlin.Pair
|
||||
// test.kt:10 box: p:kotlin.Pair=kotlin.Pair
|
||||
// test.kt:12 box: p:kotlin.Pair=kotlin.Pair
|
||||
// test.kt:17 box: p:kotlin.Pair=kotlin.Pair, o:java.lang.String="O":java.lang.String, k:java.lang.String="K":java.lang.String
|
||||
|
||||
// EXPECTATIONS JVM_IR
|
||||
// test.kt:15 box: p:kotlin.Pair=kotlin.Pair
|
||||
// test.kt:10 box: p:kotlin.Pair=kotlin.Pair
|
||||
// test.kt:15 box: p:kotlin.Pair=kotlin.Pair, o:java.lang.String="O":java.lang.String
|
||||
// test.kt:12 box: p:kotlin.Pair=kotlin.Pair, o:java.lang.String="O":java.lang.String
|
||||
// test.kt:17 box: p:kotlin.Pair=kotlin.Pair, o:java.lang.String="O":java.lang.String, k:java.lang.String="K":java.lang.String
|
||||
Reference in New Issue
Block a user