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