Adjust testData to CharSequence.length transformation

This commit is contained in:
Denis Zharkov
2015-10-12 20:29:01 +03:00
committed by Mikhail Glukhikh
parent cb562e7ea5
commit f0e3fd617d
348 changed files with 524 additions and 540 deletions
@@ -3,13 +3,13 @@ public fun foo(x: String?, y: String?): Int {
// After the check, smart cast should work
if (x != null) {
if (x == "abc") break
y!!.length()
y!!.length
} else {
y!!.length()
y!!.length
}
// y!! in both branches
<!DEBUG_INFO_SMARTCAST!>y<!>.length()
<!DEBUG_INFO_SMARTCAST!>y<!>.length
} while (true)
// break is possible before so !! is necessary
return y!!.length()
return y!!.length
}