Take into account data flow info changes for special call (if/when/elvis/!!) arguments #KT-10824 Fixed
Smart casts on complex expressions look as no more possible
This commit is contained in:
@@ -15,10 +15,10 @@ fun bar(s: Any?): String {
|
||||
else {
|
||||
val u: Any? = null
|
||||
if (u !is String) return ""
|
||||
u
|
||||
<!DEBUG_INFO_SMARTCAST!>u<!>
|
||||
}) ?: "xyz"
|
||||
// Ideally we should have smart cast to String here
|
||||
return <!TYPE_MISMATCH!>t<!>
|
||||
return t
|
||||
}
|
||||
|
||||
fun baz(s: String?, r: String?): String {
|
||||
|
||||
Reference in New Issue
Block a user