Files
kotlin-fork/compiler/testData/ir/irText/expressions/safeAssignment.kt.txt
T
2024-02-16 10:19:38 +00:00

25 lines
319 B
Kotlin
Vendored

class C {
var x: Int
field = x
get
set
constructor(x: Int) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
fun test(nc: C?) {
{ // BLOCK
val tmp_0: C? = nc
when {
EQEQ(arg0 = tmp_0, arg1 = null) -> null /*~> Unit */
else -> tmp_0.<set-x>(<set-?> = 42)
}
}
}