FIR: report UNSAFE_CALL on dot when possible
This commit is contained in:
@@ -3,21 +3,21 @@ fun foo(x: String?, y: String?, z: String?, w: String?) {
|
||||
if (x != null && y != null && (x == z || y == z))
|
||||
z.length
|
||||
else
|
||||
z.<!UNSAFE_CALL!>length<!>
|
||||
z<!UNSAFE_CALL!>.<!>length
|
||||
if (x != null || y != null || (x != z && y != z))
|
||||
z.<!UNSAFE_CALL!>length<!>
|
||||
z<!UNSAFE_CALL!>.<!>length
|
||||
else
|
||||
z.<!UNSAFE_CALL!>length<!>
|
||||
z<!UNSAFE_CALL!>.<!>length
|
||||
if (x == null || y == null || (x != z && y != z))
|
||||
z.<!UNSAFE_CALL!>length<!>
|
||||
z<!UNSAFE_CALL!>.<!>length
|
||||
else
|
||||
z.length
|
||||
if (x != null && y == x && z == y && w == z)
|
||||
w.length
|
||||
else
|
||||
w.<!UNSAFE_CALL!>length<!>
|
||||
w<!UNSAFE_CALL!>.<!>length
|
||||
if ((x != null && y == x) || (z != null && y == z))
|
||||
y.length
|
||||
else
|
||||
y.<!UNSAFE_CALL!>length<!>
|
||||
y<!UNSAFE_CALL!>.<!>length
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user