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

24 lines
318 B
Kotlin
Vendored

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