[FIR] Add a minimized alternative for orOperatorWithConstant.kt

It was decided to leave this code as is, because supporting
it would probably require introducing Implication-statements,
but this is not a good-enough use-case for such work.
This commit is contained in:
Nikolay Lunyak
2024-01-04 13:25:02 +02:00
committed by Space Team
parent f52648af5f
commit dd85a81d45
7 changed files with 46 additions and 0 deletions
@@ -0,0 +1,8 @@
fun main(x: Any?) {
if (x is String || false) {
x.<!UNRESOLVED_REFERENCE!>length<!>
}
else {
x.<!UNRESOLVED_REFERENCE!>length<!>
}
}
@@ -0,0 +1,8 @@
fun main(x: Any?) {
if (x is String || false) {
<!DEBUG_INFO_SMARTCAST!>x<!>.length
}
else {
x.<!UNRESOLVED_REFERENCE!>length<!>
}
}