Fix deprecations in testData: partial body resolve tests.
This commit is contained in:
+3
-3
@@ -6,14 +6,14 @@ fun foo(p: Any, p1: Any?) {
|
|||||||
/* STATEMENT DELETED: z(f() as String) */
|
/* STATEMENT DELETED: z(f() as String) */
|
||||||
|
|
||||||
if (a) {
|
if (a) {
|
||||||
print((p as String).size)
|
print((p as String).length())
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print((p as String).length)
|
print((p as String).get(1))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (y()) {
|
if (y()) {
|
||||||
print(<caret>p.size)
|
print(<caret>p.charAt(1))
|
||||||
/* STATEMENT DELETED: p1 as String */
|
/* STATEMENT DELETED: p1 as String */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -6,14 +6,14 @@ fun foo(p: Any, p1: Any?) {
|
|||||||
/* STATEMENT DELETED: z(f() as String) */
|
/* STATEMENT DELETED: z(f() as String) */
|
||||||
|
|
||||||
if (a) {
|
if (a) {
|
||||||
print((p as String).size)
|
print((p as String).length())
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print((p as String).length)
|
print((p as String).get(1))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (y()) {
|
if (y()) {
|
||||||
print(<caret>p.size)
|
print(<caret>p.charAt(1))
|
||||||
/* STATEMENT DELETED: p1 as String */
|
/* STATEMENT DELETED: p1 as String */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -4,14 +4,14 @@ fun foo(p: Any, p1: Any?) {
|
|||||||
z(f() as String)
|
z(f() as String)
|
||||||
|
|
||||||
if (a) {
|
if (a) {
|
||||||
print((p as String).size)
|
print((p as String).length())
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print((p as String).length)
|
print((p as String).get(1))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (y()) {
|
if (y()) {
|
||||||
print(<caret>p.size)
|
print(<caret>p.charAt(1))
|
||||||
p1 as String
|
p1 as String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ fun foo(p: String?, p1: Any?) {
|
|||||||
/* STATEMENT DELETED: y(f()!!) */
|
/* STATEMENT DELETED: y(f()!!) */
|
||||||
|
|
||||||
if (a) {
|
if (a) {
|
||||||
print(p!!.size)
|
print(p!!.length())
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print(p!!.length)
|
print(p!!.get(1))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (y()) {
|
if (y()) {
|
||||||
print(<caret>p.size)
|
print(<caret>p.charAt(1))
|
||||||
/* STATEMENT DELETED: p1!! */
|
/* STATEMENT DELETED: p1!! */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -5,14 +5,14 @@ fun foo(p: String?, p1: Any?) {
|
|||||||
/* STATEMENT DELETED: y(f()!!) */
|
/* STATEMENT DELETED: y(f()!!) */
|
||||||
|
|
||||||
if (a) {
|
if (a) {
|
||||||
print(p!!.size)
|
print(p!!.length())
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print(p!!.length)
|
print(p!!.get(1))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (y()) {
|
if (y()) {
|
||||||
print(<caret>p.size)
|
print(<caret>p.charAt(1))
|
||||||
/* STATEMENT DELETED: p1!! */
|
/* STATEMENT DELETED: p1!! */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -3,14 +3,14 @@ fun foo(p: String?, p1: Any?) {
|
|||||||
y(f()!!)
|
y(f()!!)
|
||||||
|
|
||||||
if (a) {
|
if (a) {
|
||||||
print(p!!.size)
|
print(p!!.length())
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print(p!!.length)
|
print(p!!.get(1))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (y()) {
|
if (y()) {
|
||||||
print(<caret>p.size)
|
print(<caret>p.charAt(1))
|
||||||
p1!!
|
p1!!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -7,5 +7,5 @@ fun foo(p: Any?, p1: Any?) {
|
|||||||
/* STATEMENT DELETED: print(p1!!) */
|
/* STATEMENT DELETED: print(p1!!) */
|
||||||
}
|
}
|
||||||
|
|
||||||
<caret>p.size
|
<caret>p.length()
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -5,5 +5,5 @@ fun foo(p: Any?, p1: Any?) {
|
|||||||
print(p1!!)
|
print(p1!!)
|
||||||
}
|
}
|
||||||
|
|
||||||
<caret>p.size
|
<caret>p.length()
|
||||||
}
|
}
|
||||||
@@ -4,5 +4,5 @@ fun foo(p: Any) {
|
|||||||
if (p !is String) {
|
if (p !is String) {
|
||||||
error("Not String")
|
error("Not String")
|
||||||
}
|
}
|
||||||
println(<caret>p.size)
|
println(<caret>p.length())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ fun foo(p: Any) {
|
|||||||
if (p !is String) {
|
if (p !is String) {
|
||||||
error("Not String")
|
error("Not String")
|
||||||
}
|
}
|
||||||
println(<caret>p.size)
|
println(<caret>p.length())
|
||||||
}
|
}
|
||||||
@@ -4,5 +4,5 @@ fun foo(p: Any) {
|
|||||||
if (p !is String) {
|
if (p !is String) {
|
||||||
kotlin.error("Not String")
|
kotlin.error("Not String")
|
||||||
}
|
}
|
||||||
println(<caret>p.size)
|
println(<caret>p.length())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ fun foo(p: Any) {
|
|||||||
if (p !is String) {
|
if (p !is String) {
|
||||||
kotlin.error("Not String")
|
kotlin.error("Not String")
|
||||||
}
|
}
|
||||||
println(<caret>p.size)
|
println(<caret>p.length())
|
||||||
}
|
}
|
||||||
@@ -6,5 +6,5 @@ fun foo(p: Any) {
|
|||||||
if (p !is String) {
|
if (p !is String) {
|
||||||
myError()
|
myError()
|
||||||
}
|
}
|
||||||
println(<caret>p.size)
|
println(<caret>p.length())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ fun foo(p: Any) {
|
|||||||
if (p !is String) {
|
if (p !is String) {
|
||||||
myError()
|
myError()
|
||||||
}
|
}
|
||||||
println(<caret>p.size)
|
println(<caret>p.length())
|
||||||
}
|
}
|
||||||
@@ -7,5 +7,5 @@ fun foo(p: Any) {
|
|||||||
if (p !is String) {
|
if (p !is String) {
|
||||||
prop
|
prop
|
||||||
}
|
}
|
||||||
println(<caret>p.size)
|
println(<caret>p.length())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ fun foo(p: Any) {
|
|||||||
if (p !is String) {
|
if (p !is String) {
|
||||||
prop
|
prop
|
||||||
}
|
}
|
||||||
println(<caret>p.size)
|
println(<caret>p.length())
|
||||||
}
|
}
|
||||||
@@ -10,5 +10,5 @@ fun foo(p: Any?) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
println(<caret>p.size)
|
println(<caret>p.length())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ fun foo(p: Any?) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
println(<caret>p.size)
|
println(<caret>p.length())
|
||||||
}
|
}
|
||||||
@@ -4,5 +4,5 @@ class C(public val v: Any)
|
|||||||
|
|
||||||
fun foo(c: C) {
|
fun foo(c: C) {
|
||||||
if (c.v !is String) return
|
if (c.v !is String) return
|
||||||
println(c.<caret>v.size)
|
println(c.<caret>v.length())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ class C(public val v: Any)
|
|||||||
|
|
||||||
fun foo(c: C) {
|
fun foo(c: C) {
|
||||||
if (c.v !is String) return
|
if (c.v !is String) return
|
||||||
println(c.<caret>v.size)
|
println(c.<caret>v.length())
|
||||||
}
|
}
|
||||||
@@ -4,5 +4,5 @@ fun foo(p: Any) {
|
|||||||
if (p !is String) {
|
if (p !is String) {
|
||||||
throw IllegalArgumentException()
|
throw IllegalArgumentException()
|
||||||
}
|
}
|
||||||
println(<caret>p.size)
|
println(<caret>p.length())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ fun foo(p: Any) {
|
|||||||
if (p !is String) {
|
if (p !is String) {
|
||||||
throw IllegalArgumentException()
|
throw IllegalArgumentException()
|
||||||
}
|
}
|
||||||
println(<caret>p.size)
|
println(<caret>p.length())
|
||||||
}
|
}
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
Resolve target: val kotlin.String.size: kotlin.Int
|
Resolve target: fun kotlin.String.isNotEmpty(): kotlin.Boolean
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
fun foo(p: String) {
|
fun foo(p: String) {
|
||||||
/* STATEMENT DELETED: if (x()) return */
|
/* STATEMENT DELETED: if (x()) return */
|
||||||
println(p.<caret>size)
|
println(p.<caret>isNotEmpty())
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
fun foo(p: String) {
|
fun foo(p: String) {
|
||||||
if (x()) return
|
if (x()) return
|
||||||
println(p.<caret>size)
|
println(p.<caret>isNotEmpty())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ fun foo(p: String?, errorHandler: () -> Nothing) {
|
|||||||
errorHandler()
|
errorHandler()
|
||||||
}
|
}
|
||||||
|
|
||||||
<caret>p.size
|
<caret>p.length()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ fun foo(p: String?, errorHandler: () -> Nothing) {
|
|||||||
errorHandler()
|
errorHandler()
|
||||||
}
|
}
|
||||||
|
|
||||||
<caret>p.size
|
<caret>p.length()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ fun foo(p: String?, p1: Any?) {
|
|||||||
if (p == null) {
|
if (p == null) {
|
||||||
localError()
|
localError()
|
||||||
}
|
}
|
||||||
<caret>p.size
|
<caret>p.length()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ fun foo(p: String?, p1: Any?) {
|
|||||||
if (p == null) {
|
if (p == null) {
|
||||||
localError()
|
localError()
|
||||||
}
|
}
|
||||||
<caret>p.size
|
<caret>p.length()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,5 +6,5 @@ fun foo(p: String?, p1: Any?) {
|
|||||||
if (p == null) {
|
if (p == null) {
|
||||||
localError()
|
localError()
|
||||||
}
|
}
|
||||||
<caret>p.size
|
<caret>p.length()
|
||||||
}
|
}
|
||||||
@@ -7,5 +7,5 @@ fun foo(p: String?): () -> String {
|
|||||||
"a"
|
"a"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<caret>p.size
|
<caret>p.length()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ fun foo(p: String?): () -> String {
|
|||||||
"a"
|
"a"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<caret>p.size
|
<caret>p.length()
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,6 @@ class C(val s: String?) {
|
|||||||
print(this.s!!)
|
print(this.s!!)
|
||||||
}
|
}
|
||||||
|
|
||||||
<caret>s.size
|
<caret>s.length()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,6 @@ class C(val s: String?) {
|
|||||||
print(this.s!!)
|
print(this.s!!)
|
||||||
}
|
}
|
||||||
|
|
||||||
<caret>s.size
|
<caret>s.length()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user