FIR: report UNSAFE_CALL on dot when possible
This commit is contained in:
@@ -2,5 +2,5 @@ fun calc(x: List<String>?): Int {
|
||||
// x should be non-null in arguments list
|
||||
x?.subList(x.size - 1, x.size)
|
||||
// but not also here!
|
||||
return x.<!UNSAFE_CALL!>size<!>
|
||||
return x<!UNSAFE_CALL!>.<!>size
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user