Get rid of deprecated annotations in testData
This commit is contained in:
@@ -4,13 +4,13 @@ object A {
|
||||
|
||||
val b: String = "OK"
|
||||
|
||||
platformStatic var c: String = "Fail"
|
||||
@platformStatic var c: String = "Fail"
|
||||
|
||||
platformStatic fun test1() : String {
|
||||
@platformStatic fun test1() : String {
|
||||
return b
|
||||
}
|
||||
|
||||
platformStatic fun test2() : String {
|
||||
@platformStatic fun test2() : String {
|
||||
return test1()
|
||||
}
|
||||
|
||||
@@ -18,11 +18,11 @@ object A {
|
||||
return "1".test5()
|
||||
}
|
||||
|
||||
platformStatic fun test4(): String {
|
||||
@platformStatic fun test4(): String {
|
||||
return "1".test5()
|
||||
}
|
||||
|
||||
platformStatic fun String.test5() : String {
|
||||
@platformStatic fun String.test5() : String {
|
||||
return this + b
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,13 +4,13 @@ object A {
|
||||
|
||||
val b: String = "OK"
|
||||
|
||||
platformStatic val c: String = "OK"
|
||||
@platformStatic val c: String = "OK"
|
||||
|
||||
platformStatic fun test1() : String {
|
||||
@platformStatic fun test1() : String {
|
||||
return {b}()
|
||||
}
|
||||
|
||||
platformStatic fun test2() : String {
|
||||
@platformStatic fun test2() : String {
|
||||
return {test1()}()
|
||||
}
|
||||
|
||||
@@ -18,11 +18,11 @@ object A {
|
||||
return {"1".test5()}()
|
||||
}
|
||||
|
||||
platformStatic fun test4(): String {
|
||||
@platformStatic fun test4(): String {
|
||||
return {"1".test5()}()
|
||||
}
|
||||
|
||||
platformStatic fun String.test5() : String {
|
||||
@platformStatic fun String.test5() : String {
|
||||
return {this + b}()
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ object A {
|
||||
v += B(1000)
|
||||
}
|
||||
|
||||
platformStatic fun B.plusAssign(b: B) {
|
||||
@platformStatic fun B.plusAssign(b: B) {
|
||||
this.s += b.s
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import kotlin.platform.platformStatic
|
||||
|
||||
object A {
|
||||
|
||||
platformStatic fun test(b: String = "OK") : String {
|
||||
@platformStatic fun test(b: String = "OK") : String {
|
||||
return b
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,9 +2,9 @@ import kotlin.platform.platformStatic
|
||||
|
||||
object AX {
|
||||
|
||||
platformStatic val c: String = "OK"
|
||||
@platformStatic val c: String = "OK"
|
||||
|
||||
platformStatic fun aStatic(): String {
|
||||
@platformStatic fun aStatic(): String {
|
||||
return AX.b()
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ object AX {
|
||||
return AX.b()
|
||||
}
|
||||
|
||||
platformStatic fun b(): String {
|
||||
@platformStatic fun b(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ fun getA(): A {
|
||||
}
|
||||
|
||||
object A {
|
||||
platformStatic fun a(): String {
|
||||
@platformStatic fun a(): String {
|
||||
return holder
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import kotlin.platform.platformStatic
|
||||
|
||||
object A {
|
||||
|
||||
platformStatic inline fun test(b: String = "OK") : String {
|
||||
@platformStatic inline fun test(b: String = "OK") : String {
|
||||
return b
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import kotlin.platform.platformStatic
|
||||
|
||||
object A {
|
||||
|
||||
platformStatic var a: Int = 1
|
||||
@platformStatic var a: Int = 1
|
||||
|
||||
var b: Int = 1
|
||||
@platformStatic get
|
||||
|
||||
@@ -2,7 +2,7 @@ import kotlin.platform.platformStatic
|
||||
|
||||
object A {
|
||||
|
||||
platformStatic var a: Int = 1
|
||||
@platformStatic var a: Int = 1
|
||||
|
||||
var b: Int = 1
|
||||
@platformStatic get
|
||||
|
||||
@@ -2,7 +2,7 @@ import kotlin.platform.platformStatic
|
||||
|
||||
object A {
|
||||
|
||||
private platformStatic fun a(): String {
|
||||
private @platformStatic fun a(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ fun getA(): A {
|
||||
|
||||
object A {
|
||||
|
||||
platformStatic var a: Int = 1
|
||||
@platformStatic var a: Int = 1
|
||||
|
||||
var b: Int = 1
|
||||
@platformStatic get
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import kotlin.platform.platformStatic
|
||||
|
||||
object X {
|
||||
platformStatic val x = "OK"
|
||||
@platformStatic val x = "OK"
|
||||
|
||||
fun fn(value : String = x): String = value
|
||||
}
|
||||
|
||||
@@ -4,13 +4,13 @@ object A {
|
||||
|
||||
val b: String = "OK"
|
||||
|
||||
platformStatic val c: String = "OK"
|
||||
@platformStatic val c: String = "OK"
|
||||
|
||||
platformStatic fun test1() : String {
|
||||
@platformStatic fun test1() : String {
|
||||
return b
|
||||
}
|
||||
|
||||
platformStatic fun test2() : String {
|
||||
@platformStatic fun test2() : String {
|
||||
return test1()
|
||||
}
|
||||
|
||||
@@ -18,11 +18,11 @@ object A {
|
||||
return "1".test5()
|
||||
}
|
||||
|
||||
platformStatic fun test4(): String {
|
||||
@platformStatic fun test4(): String {
|
||||
return "1".test5()
|
||||
}
|
||||
|
||||
platformStatic fun String.test5() : String {
|
||||
@platformStatic fun String.test5() : String {
|
||||
return this + b
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import kotlin.platform.*
|
||||
|
||||
class C {
|
||||
companion object {
|
||||
private platformStatic fun foo(): String {
|
||||
private @platformStatic fun foo(): String {
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user