Condition analysis: left part of and (true condition) / or (false condition) is used for right part analysis #KT-8780 Fixed
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
fun foo(x: String?, y: String?, z: String?, w: String?) {
|
||||
if (x != null && y != null && (x == z || y == z))
|
||||
<!DEBUG_INFO_SMARTCAST!>z<!>.length
|
||||
else
|
||||
z<!UNSAFE_CALL!>.<!>length
|
||||
if (x != null || y != null || (x != z && y != z))
|
||||
z<!UNSAFE_CALL!>.<!>length
|
||||
else
|
||||
z<!UNSAFE_CALL!>.<!>length
|
||||
if (x == null || y == null || (x != z && y != z))
|
||||
z<!UNSAFE_CALL!>.<!>length
|
||||
else
|
||||
<!DEBUG_INFO_SMARTCAST!>z<!>.length
|
||||
if (x != null && y == x && z == y && w == z)
|
||||
<!DEBUG_INFO_SMARTCAST!>w<!>.length
|
||||
else
|
||||
w<!UNSAFE_CALL!>.<!>length
|
||||
if ((x != null && y == x) || (z != null && y == z))
|
||||
<!DEBUG_INFO_SMARTCAST!>y<!>.length
|
||||
else
|
||||
y<!UNSAFE_CALL!>.<!>length
|
||||
}
|
||||
Reference in New Issue
Block a user