More precise diagnostics of smart cast impossible #KT-7240 Fixed
This commit is contained in:
+1
-1
@@ -6,6 +6,6 @@ fun foo(y: String?) {
|
||||
var x: String? = ""
|
||||
if (x != null) {
|
||||
bar(y?.let { x = null; it })<!UNSAFE_CALL!>.<!>length
|
||||
x<!UNSAFE_CALL!>.<!>length // Smart cast is not possible
|
||||
<!SMARTCAST_IMPOSSIBLE!>x<!>.length // Smart cast is not possible
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user