Files
kotlin-fork/compiler/testData/ir/irText/expressions/destructuring1.fir.kt.txt
T
Vladimir Sukharev bae8b283c7 [IR] Normalize temp var names in Kotlin-like dump
^KT-61983 Fixed
2023-10-11 07:49:35 +00:00

32 lines
430 B
Kotlin
Vendored

object A {
private constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}
object B {
private constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
operator fun A.component1(): Int {
return 1
}
operator fun A.component2(): Int {
return 2
}
}
fun B.test() {
val tmp_0: A = A
val x: Int = (<this>, tmp_0).component1()
val y: Int = (<this>, tmp_0).component2()
}