Adjust testData: get rid of obsolete annotations
This commit is contained in:
@@ -9,12 +9,12 @@ Retention(RetentionPolicy.RUNTIME)
|
||||
annotation class Second(val value: String)
|
||||
|
||||
enum class E {
|
||||
[First]
|
||||
@First
|
||||
E1 {
|
||||
fun foo() = "something"
|
||||
}
|
||||
|
||||
[Second("OK")]
|
||||
@Second("OK")
|
||||
E2
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ fun testClass(clazz: Class<*>, name: String) {
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
testClass(foo0([Ann("OK")] { }), "1")
|
||||
testClass(foo0(@Ann("OK") { }), "1")
|
||||
testClass(foo0( @Ann("OK") { }), "2")
|
||||
|
||||
testClass(foo0() @Ann("OK") { }, "3")
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ annotation class First
|
||||
|
||||
class MyClass() {
|
||||
public var x: String by Delegate()
|
||||
[First] set
|
||||
@First set
|
||||
}
|
||||
|
||||
class Delegate {
|
||||
|
||||
Vendored
+2
-2
@@ -2,9 +2,9 @@ import kotlin.platform.platformName
|
||||
import kotlin.reflect.jvm.*
|
||||
|
||||
var state: String = "value"
|
||||
[platformName("getter")]
|
||||
@platformName("getter")
|
||||
get
|
||||
[platformName("setter")]
|
||||
@platformName("setter")
|
||||
set
|
||||
|
||||
fun box(): String {
|
||||
|
||||
+9
-9
@@ -1,27 +1,27 @@
|
||||
class C {
|
||||
companion object {
|
||||
val defaultGetter: Int = 1
|
||||
[native] get
|
||||
@native get
|
||||
|
||||
var defaultSetter: Int = 1
|
||||
[native] get
|
||||
[native] set
|
||||
@native get
|
||||
@native set
|
||||
}
|
||||
|
||||
val defaultGetter: Int = 1
|
||||
[native] get
|
||||
@native get
|
||||
|
||||
var defaultSetter: Int = 1
|
||||
[native] get
|
||||
[native] set
|
||||
@native get
|
||||
@native set
|
||||
}
|
||||
|
||||
val defaultGetter: Int = 1
|
||||
[native] get
|
||||
@native get
|
||||
|
||||
var defaultSetter: Int = 1
|
||||
[native] get
|
||||
[native] set
|
||||
@native get
|
||||
@native set
|
||||
|
||||
fun check(body: () -> Unit, signature: String): String? {
|
||||
try {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class C {
|
||||
companion object {
|
||||
[kotlin.platform.platformStatic] [kotlin.jvm.jvmOverloads] public fun foo(o: String, k: String = "K"): String {
|
||||
@kotlin.platform.platformStatic @kotlin.jvm.jvmOverloads public fun foo(o: String, k: String = "K"): String {
|
||||
return o + k
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class C {
|
||||
[kotlin.jvm.jvmOverloads] public fun foo(o: String = "O", i1: Int, k: String = "K", i2: Int): String {
|
||||
@kotlin.jvm.jvmOverloads public fun foo(o: String = "O", i1: Int, k: String = "K", i2: Int): String {
|
||||
return o + k
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class C {
|
||||
[kotlin.jvm.jvmOverloads] public fun foo(d1: Double, d2: Double, status: String = "OK"): String {
|
||||
@kotlin.jvm.jvmOverloads public fun foo(d1: Double, d2: Double, status: String = "OK"): String {
|
||||
return if (d1 + d2 == 3.0) status else "fail"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class C {
|
||||
}
|
||||
|
||||
[kotlin.jvm.jvmOverloads] fun C.foo(o: String, k: String = "K"): String {
|
||||
@kotlin.jvm.jvmOverloads fun C.foo(o: String, k: String = "K"): String {
|
||||
return o + k
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
class C {
|
||||
[kotlin.jvm.jvmOverloads] public fun foo(o: String = "O", k: String = "K"): String {
|
||||
@kotlin.jvm.jvmOverloads public fun foo(o: String = "O", k: String = "K"): String {
|
||||
return o + k
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
class C {
|
||||
[kotlin.jvm.jvmOverloads] public fun foo(o: String, k: String = "K"): String {
|
||||
@kotlin.jvm.jvmOverloads public fun foo(o: String, k: String = "K"): String {
|
||||
return o + k
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class C [kotlin.jvm.jvmOverloads] (s1: String, s2: String = "K") {
|
||||
class C @kotlin.jvm.jvmOverloads constructor(s1: String, s2: String = "K") {
|
||||
public val status: String = s1 + s2
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
class C(val i: Int) {
|
||||
var status = "fail"
|
||||
|
||||
[kotlin.jvm.jvmOverloads] constructor(o: String, k: String = "K"): this(-1) {
|
||||
@kotlin.jvm.jvmOverloads constructor(o: String, k: String = "K"): this(-1) {
|
||||
status = o + k
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class C {
|
||||
[kotlin.jvm.jvmOverloads] public fun foo(s: String = "OK"): String {
|
||||
@kotlin.jvm.jvmOverloads public fun foo(s: String = "OK"): String {
|
||||
return s
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import kotlin.platform.*
|
||||
|
||||
[platformName("bar")]
|
||||
@platformName("bar")
|
||||
fun foo() = "foo"
|
||||
|
||||
fun box(): String {
|
||||
|
||||
@@ -2,7 +2,7 @@ import kotlin.platform.*
|
||||
|
||||
fun <T> List<T>.foo() = "foo"
|
||||
|
||||
[platformName("fooInt")]
|
||||
@platformName("fooInt")
|
||||
fun List<Int>.foo() = "fooInt"
|
||||
|
||||
fun box(): String {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import kotlin.platform.*
|
||||
|
||||
[platformName("bar")]
|
||||
@platformName("bar")
|
||||
fun foo() = "foo"
|
||||
|
||||
fun box(): String {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import kotlin.platform.*
|
||||
|
||||
var v: Int = 1
|
||||
[platformName("vget")]
|
||||
@platformName("vget")
|
||||
get
|
||||
[platformName("vset")]
|
||||
@platformName("vset")
|
||||
set
|
||||
|
||||
fun box(): String {
|
||||
|
||||
@@ -5,10 +5,10 @@ object A {
|
||||
platformStatic var a: Int = 1
|
||||
|
||||
var b: Int = 1
|
||||
[platformStatic] get
|
||||
@platformStatic get
|
||||
|
||||
var c: Int = 1
|
||||
[platformStatic] set
|
||||
@platformStatic set
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@ object A {
|
||||
platformStatic var a: Int = 1
|
||||
|
||||
var b: Int = 1
|
||||
[platformStatic] get
|
||||
@platformStatic get
|
||||
|
||||
var c: Int = 1
|
||||
[platformStatic] set
|
||||
@platformStatic set
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -12,10 +12,10 @@ object A {
|
||||
platformStatic var a: Int = 1
|
||||
|
||||
var b: Int = 1
|
||||
[platformStatic] get
|
||||
@platformStatic get
|
||||
|
||||
var c: Int = 1
|
||||
[platformStatic] set
|
||||
@platformStatic set
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ open class B
|
||||
class A {
|
||||
|
||||
companion object {
|
||||
[platformStatic]
|
||||
@platformStatic
|
||||
fun <T: B> a(s: T) : T {
|
||||
return s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user