Files
kotlin-fork/compiler/testData/ir/irText/expressions/temporaryInInitBlock.kt.txt
T
Denis.Zharkov 5c62ee4ba8 FIR2IR: Fix complex cases of smart cast expressions used as dispatch receiver
It might be not only <ExpressionWithSmartCast>(a).foo(), but also
id(<ExpressionWithSmartCast>(a)).foo() and many other cases
2021-01-29 10:50:22 +03:00

22 lines
347 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 /*as Any */.toString()
}
}
}
}