Fix unsound smartcast due to returns(null) in safecall

^KT-26382 Fixed
This commit is contained in:
Dmitry Savvinov
2018-09-05 14:30:32 +03:00
parent 18338f4ea3
commit 051ad0f79e
2 changed files with 18 additions and 5 deletions
@@ -12,6 +12,6 @@ fun Any.nullWhenString(): Any? {
fun test(x: Int?) {
if (x?.nullWhenString() == null) {
<!DEBUG_INFO_SMARTCAST!>x<!>.length
x.<!UNRESOLVED_REFERENCE!>length<!>
}
}