FIR: report UNSAFE_CALL on dot when possible
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ fun bar(z: String?) = z
|
||||
fun foo(y: String?) {
|
||||
var x: String? = ""
|
||||
if (x != null) {
|
||||
bar(y?.let { x = null; it }).<!UNSAFE_CALL!>length<!>
|
||||
bar(y?.let { x = null; it })<!UNSAFE_CALL!>.<!>length
|
||||
x.length // Smart cast is not possible
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user