FIR: report UNSAFE_CALL on dot when possible
This commit is contained in:
Vendored
+1
-1
@@ -7,7 +7,7 @@ fun test_1(s: String?) {
|
||||
fun test_2(s: String?) {
|
||||
// contracts related
|
||||
if (s.isNullOrEmpty()) {
|
||||
s.<!INAPPLICABLE_CANDIDATE{LT}, UNSAFE_CALL!>length<!> // Should be bad
|
||||
s<!UNSAFE_CALL!>.<!>length // Should be bad
|
||||
} else {
|
||||
s.length // Should be OK
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user