Adjust testData to CharSequence.length transformation
This commit is contained in:
committed by
Mikhail Glukhikh
parent
cb562e7ea5
commit
f0e3fd617d
+5
-5
@@ -2,10 +2,10 @@ fun x(p: String): Boolean { return p == "abc" }
|
||||
|
||||
public fun foo(p: String?, r: String?, q: String?): Int {
|
||||
while(true) {
|
||||
q!!.length()
|
||||
q!!.length
|
||||
loop@ do {
|
||||
while(true) {
|
||||
p!!.length()
|
||||
p!!.length
|
||||
if (x(<!DEBUG_INFO_SMARTCAST!>p<!>)) break@loop
|
||||
if (x(<!DEBUG_INFO_SMARTCAST!>q<!>)) break
|
||||
}
|
||||
@@ -13,8 +13,8 @@ public fun foo(p: String?, r: String?, q: String?): Int {
|
||||
if (!x(<!DEBUG_INFO_SMARTCAST!>p<!>)) break
|
||||
}
|
||||
// Long break allows r == null
|
||||
r<!UNSAFE_CALL!>.<!>length()
|
||||
r<!UNSAFE_CALL!>.<!>length
|
||||
// Smart cast is possible
|
||||
<!DEBUG_INFO_SMARTCAST!>q<!>.length()
|
||||
return <!DEBUG_INFO_SMARTCAST!>p<!>.length()
|
||||
<!DEBUG_INFO_SMARTCAST!>q<!>.length
|
||||
return <!DEBUG_INFO_SMARTCAST!>p<!>.length
|
||||
}
|
||||
Reference in New Issue
Block a user