Deduct x != null from x?.y is NotNullType

This commit is contained in:
Mikhail Glukhikh
2016-07-21 20:31:19 +03:00
parent 90c6868f9b
commit 5a2f34b351
2 changed files with 6 additions and 3 deletions
@@ -52,8 +52,7 @@ fun kt4565_1(a: SomeClass?) {
<!DEBUG_INFO_SMARTCAST!>a<!>.data.hashCode()
}
if (a?.data is String) {
// To be supported
a<!UNSAFE_CALL!>.<!>data.<!UNRESOLVED_REFERENCE!>length<!>
<!DEBUG_INFO_SMARTCAST!>a<!>.data.<!UNRESOLVED_REFERENCE!>length<!>
data.<!UNRESOLVED_REFERENCE!>length<!>
}
}