FIR: report UNSAFE_CALL on dot when possible
This commit is contained in:
@@ -22,6 +22,6 @@ fun test_3(a: Any?, b: Boolean) {
|
||||
|
||||
fun test_4(a: Any?, b: Boolean) {
|
||||
if (a is String || b) {
|
||||
a.<!UNSAFE_CALL{LT}!><!UNSAFE_CALL{PSI}!>foo<!>()<!> // Should be Bad
|
||||
a<!UNSAFE_CALL!>.<!>foo() // Should be Bad
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user