Get rid of deprecated annotations in testData
This commit is contained in:
@@ -2,10 +2,10 @@ package test
|
||||
|
||||
import dependency.*
|
||||
|
||||
data A("a") B(1) C class Annotations {
|
||||
data @A("a") @B(1) @C class Annotations {
|
||||
|
||||
inline A("f") B(2) C fun f(A("i") B(3) C Deprecated("1") i: @A("int") Int) {
|
||||
inline @A("f") @B(2) @C fun f(@A("i") @B(3) @C @Deprecated("1") i: @A("int") Int) {
|
||||
}
|
||||
|
||||
inline A("p") B(3) C val p: @B(4) Int = 2
|
||||
inline @A("p") @B(3) @C val p: @B(4) Int = 2
|
||||
}
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@ class SecondaryConstructors(x: Boolean) {
|
||||
init {
|
||||
}
|
||||
|
||||
anno constructor(x: String) : this(x == "abc") {
|
||||
@anno constructor(x: String) : this(x == "abc") {
|
||||
}
|
||||
|
||||
init {
|
||||
@@ -19,7 +19,7 @@ class SecondaryConstructors(x: Boolean) {
|
||||
}
|
||||
|
||||
class Nested {
|
||||
anno constructor(z: Int) {}
|
||||
@anno constructor(z: Int) {}
|
||||
internal constructor() {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,4 +33,4 @@ package testData.libraries
|
||||
|
||||
[public fun processDouble(d: testData.libraries.Double): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[kotlin.inline public fun <T> T.filter(predicate: (T) -> kotlin.Boolean): T? { /* compiled code */ }]
|
||||
[@kotlin.inline public fun <T> T.filter(predicate: (T) -> kotlin.Boolean): T? { /* compiled code */ }]
|
||||
@@ -1,13 +1,13 @@
|
||||
a public class Annotations private @a constructor(private @property:a @param:a val c1: Int, @property:a @param:a val c2: Int) {
|
||||
@a public class Annotations private @a constructor(private @property:a @param:a val c1: Int, @property:a @param:a val c2: Int) {
|
||||
|
||||
protected a fun f() {
|
||||
protected @a fun f() {
|
||||
}
|
||||
|
||||
private fun annotationWithVararg(a vararg i: Int) {}
|
||||
private fun annotationWithVararg(@a vararg i: Int) {}
|
||||
|
||||
b(E.E1) private val c: Int = 1
|
||||
@b(E.E1) private val c: Int = 1
|
||||
|
||||
a b(E.E2) public fun g(@a p1: E) {
|
||||
@a @b(E.E2) public fun g(@a p1: E) {
|
||||
}
|
||||
|
||||
var withCustomAccessors: Int = 0
|
||||
@@ -16,7 +16,7 @@ a public class Annotations private @a constructor(private @property:a @param:a v
|
||||
@a private set
|
||||
|
||||
|
||||
private b(E.E2) companion object {
|
||||
private @b(E.E2) companion object {
|
||||
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@ class SecondaryConstructors(x: Boolean) {
|
||||
init {
|
||||
}
|
||||
|
||||
anno constructor(x: String) : this(x == "abc") {
|
||||
@anno constructor(x: String) : this(x == "abc") {
|
||||
}
|
||||
|
||||
init {
|
||||
@@ -19,7 +19,7 @@ class SecondaryConstructors(x: Boolean) {
|
||||
}
|
||||
|
||||
class Nested {
|
||||
anno constructor(z: Int) {}
|
||||
@anno constructor(z: Int) {}
|
||||
internal constructor() {}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -4,7 +4,7 @@ import d.e.f.*
|
||||
|
||||
@property:a @property:b val i: Int = 0
|
||||
|
||||
a b fun f(@a @b p1: C): Int = 0
|
||||
@a @b fun f(@a @b p1: C): Int = 0
|
||||
|
||||
|
||||
class C
|
||||
Reference in New Issue
Block a user