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

29 lines
542 B
Plaintext
Vendored

val n: Any?
field = null
get
open enum class En : Enum<En> {
private constructor(x: String?) /* primary */ {
super/*Enum*/<En>()
/* <init>() */
}
val x: String?
field = x
get
ENTRY = En(x = { // BLOCK
val tmp0_safe_receiver: Any? = <get-n>()
when {
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
else -> tmp0_safe_receiver.toString()
}
})
fun values(): Array<En> /* Synthetic body for ENUM_VALUES */
fun valueOf(value: String): En /* Synthetic body for ENUM_VALUEOF */
}