Files
kotlin-fork/compiler/testData/ir/irText/expressions/temporaryInInitBlock.kt.txt
T
Denis.Zharkov 1e0d9f4075 FIR2IR: Do not add implicit casts for types with different nullability
For smart casts, elvises, etc., there are no implicit casts in psi2fir
in changed test data
2021-01-29 10:50:22 +03:00

22 lines
335 B
Plaintext
Vendored

class C {
constructor(x: Any?) /* primary */ {
super/*Any*/()
/* <init>() */
}
val s: String?
get
init {
<this>.#s = { // BLOCK
val tmp0_safe_receiver: Any? = x
when {
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
else -> tmp0_safe_receiver.toString()
}
}
}
}