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:
+4
-4
@@ -1,11 +1,11 @@
|
||||
fun baz(s: String?, u: String?): String {
|
||||
val t = when(if (u == null) return "" else <!DEBUG_INFO_SMARTCAST!>u<!>) {
|
||||
"abc" -> u
|
||||
"abc" -> <!DEBUG_INFO_SMARTCAST!>u<!>
|
||||
"" -> {
|
||||
if (s == null) return ""
|
||||
s
|
||||
<!DEBUG_INFO_SMARTCAST!>s<!>
|
||||
}
|
||||
else -> u
|
||||
else -> <!DEBUG_INFO_SMARTCAST!>u<!>
|
||||
}
|
||||
return <!DEBUG_INFO_SMARTCAST!>t<!>
|
||||
return t
|
||||
}
|
||||
Reference in New Issue
Block a user