Adjust testData to CharSequence.length transformation
This commit is contained in:
committed by
Mikhail Glukhikh
parent
cb562e7ea5
commit
f0e3fd617d
+5
-5
@@ -2,18 +2,18 @@ fun x(): Boolean { return true }
|
||||
|
||||
public fun foo(p: String?, r: String?, q: String?): Int {
|
||||
outer@ while(true) {
|
||||
q!!.length()
|
||||
q!!.length
|
||||
do {
|
||||
if (x()) continue@outer
|
||||
do {
|
||||
p!!.length()
|
||||
p!!.length
|
||||
} while (!x())
|
||||
} while (r == null)
|
||||
if (!x()) break
|
||||
}
|
||||
// Smart cast is possible only for q
|
||||
<!DEBUG_INFO_SMARTCAST!>q<!>.length()
|
||||
<!DEBUG_INFO_SMARTCAST!>q<!>.length
|
||||
// But not possible for the others
|
||||
r<!UNSAFE_CALL!>.<!>length()
|
||||
return p<!UNSAFE_CALL!>.<!>length()
|
||||
r<!UNSAFE_CALL!>.<!>length
|
||||
return p<!UNSAFE_CALL!>.<!>length
|
||||
}
|
||||
Reference in New Issue
Block a user