Fix unsound smartcast due to returns(null) in safecall
^KT-26382 Fixed
This commit is contained in:
Vendored
+1
-1
@@ -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<!>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user