Replace annotations with brackets in testData
Just in tests that changed after deprecation
This commit is contained in:
+8
-8
@@ -12,24 +12,24 @@ abstract class A {
|
||||
|
||||
object B: A() {
|
||||
|
||||
<!OVERRIDE_CANNOT_BE_STATIC!>[platformStatic] override fun a()<!> {}
|
||||
<!OVERRIDE_CANNOT_BE_STATIC!>@platformStatic override fun a()<!> {}
|
||||
|
||||
<!OVERRIDE_CANNOT_BE_STATIC!>[platformStatic] override fun b()<!> {}
|
||||
<!OVERRIDE_CANNOT_BE_STATIC!>@platformStatic override fun b()<!> {}
|
||||
|
||||
<!OVERRIDE_CANNOT_BE_STATIC!>[platformStatic] final override fun c()<!> {}
|
||||
<!OVERRIDE_CANNOT_BE_STATIC!>@platformStatic final override fun c()<!> {}
|
||||
|
||||
[platformStatic] open fun d() {}
|
||||
@platformStatic open fun d() {}
|
||||
}
|
||||
|
||||
class C {
|
||||
|
||||
companion object: A() {
|
||||
[platformStatic] override fun a() {}
|
||||
@platformStatic override fun a() {}
|
||||
|
||||
[platformStatic] override fun b() {}
|
||||
@platformStatic override fun b() {}
|
||||
|
||||
[platformStatic] final override fun c() {}
|
||||
@platformStatic final override fun c() {}
|
||||
|
||||
[platformStatic] open fun d() {}
|
||||
@platformStatic open fun d() {}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
import kotlin.platform.platformStatic
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
<!PLATFORM_STATIC_NOT_IN_OBJECT!>[platformStatic] fun a()<!>{
|
||||
<!PLATFORM_STATIC_NOT_IN_OBJECT!>@platformStatic fun a()<!>{
|
||||
|
||||
}
|
||||
}
|
||||
+10
-10
@@ -9,38 +9,38 @@ open class B {
|
||||
class A {
|
||||
companion object : B() {
|
||||
var p1:Int = 1
|
||||
[platformStatic] set(p: Int) {
|
||||
@platformStatic set(p: Int) {
|
||||
p1 = 1
|
||||
}
|
||||
|
||||
[platformStatic] val z = 1;
|
||||
@platformStatic val z = 1;
|
||||
|
||||
[platformStatic] override val base1: Int = 0
|
||||
@platformStatic override val base1: Int = 0
|
||||
|
||||
override val base2: Int = 0
|
||||
[platformStatic] get
|
||||
@platformStatic get
|
||||
}
|
||||
|
||||
object A : B() {
|
||||
var p:Int = 1
|
||||
[platformStatic] set(p1: Int) {
|
||||
@platformStatic set(p1: Int) {
|
||||
p = 1
|
||||
}
|
||||
|
||||
[platformStatic] val z = 1;
|
||||
@platformStatic val z = 1;
|
||||
|
||||
<!OVERRIDE_CANNOT_BE_STATIC!>[platformStatic] override val base1: Int<!> = 0
|
||||
<!OVERRIDE_CANNOT_BE_STATIC!>@platformStatic override val base1: Int<!> = 0
|
||||
|
||||
platformStatic open fun f() {}
|
||||
|
||||
override val base2: Int = 0
|
||||
<!OVERRIDE_CANNOT_BE_STATIC!>[platformStatic] get<!>
|
||||
<!OVERRIDE_CANNOT_BE_STATIC!>@platformStatic get<!>
|
||||
}
|
||||
|
||||
var p:Int = 1
|
||||
<!PLATFORM_STATIC_NOT_IN_OBJECT!>[platformStatic] set(p1: Int)<!> {
|
||||
<!PLATFORM_STATIC_NOT_IN_OBJECT!>@platformStatic set(p1: Int)<!> {
|
||||
p = 1
|
||||
}
|
||||
|
||||
<!PLATFORM_STATIC_NOT_IN_OBJECT!>[platformStatic] val z2<!> = 1;
|
||||
<!PLATFORM_STATIC_NOT_IN_OBJECT!>@platformStatic val z2<!> = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user