Files
kotlin-fork/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.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

17 lines
357 B
Kotlin
Vendored

fun test(j: J) {
j.getFoo() /*~> Unit */
j.setFoo(x = 1)
{ // BLOCK
val tmp0_receiver: J = j
{ // BLOCK
val tmp1: Int = tmp0_receiver.getFoo()
tmp0_receiver.setFoo(x = tmp1.inc())
tmp1
}
} /*~> Unit */
{ // BLOCK
val tmp2_receiver: J = j
tmp2_receiver.setFoo(x = tmp2_receiver.getFoo().plus(other = 1))
}
}