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:
+2
-2
@@ -1,10 +1,10 @@
|
||||
fun baz(s: String?): Int {
|
||||
return <info descr="Smart cast to kotlin.String">if</info> (s == null) {
|
||||
return if (s == null) {
|
||||
""
|
||||
}
|
||||
else {
|
||||
val u: String? = null
|
||||
if (u == null) return 0
|
||||
u
|
||||
<info descr="Smart cast to kotlin.String">u</info>
|
||||
}.length
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user