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

32 lines
377 B
Kotlin
Vendored

class Host {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
operator fun plusAssign(x: Int) {
}
fun test1() {
<this>.plusAssign(x = 1)
}
}
fun foo(): Host {
return Host()
}
fun Host.test2() {
<this>.plusAssign(x = 1)
}
fun test3() {
foo().plusAssign(x = 1)
}
fun test4(a: Function0<Host>) {
a.invoke().plusAssign(x = 1)
}