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
This commit is contained in:
@@ -79,7 +79,7 @@ fun box(): String {
|
||||
val tmp0_safe_receiver: ImplicitReceiverValue<*>? = stack.get(name = null)
|
||||
when {
|
||||
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
|
||||
else -> tmp0_safe_receiver.<get-type>()
|
||||
else -> tmp0_safe_receiver /*as ImplicitReceiverValue<*> */.<get-type>()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user