Files
kotlin-fork/compiler/testData/ir/irText/expressions/destructuring1.kt.txt
T
Dmitriy Novozhilov b454fcc1e0 [FIR] Save IR dumps to .ir.txt files instead of .txt in tests
This is needed to avoid clashes between different dumps from different
  handlers
2021-10-12 17:26:36 +03:00

34 lines
481 B
Plaintext
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() {
// COMPOSITE {
val tmp0_container: A = A
val x: Int = (<this>, tmp0_container).component1()
val y: Int = (<this>, tmp0_container).component2()
// }
}