Remove @get: @set:, reorder remaining annotation targets

This commit is contained in:
Yan Zhulanow
2015-09-11 20:27:00 +03:00
parent 4e8d664dfb
commit 01b2d02196
11 changed files with 41 additions and 58 deletions
@@ -8,9 +8,9 @@ annotation class smartset
annotation class base
class My(x: Int) {
@smartget var y = x
<!WRONG_ANNOTATION_TARGET!>@smartget<!> var y = x
<!WRONG_ANNOTATION_TARGET!>@base<!> @smartget <!WRONG_ANNOTATION_TARGET!>@smartset<!> get
<!WRONG_ANNOTATION_TARGET!>@base<!> <!WRONG_ANNOTATION_TARGET!>@smartget<!> @smartset set
@base <!WRONG_ANNOTATION_TARGET!>@smartget<!> <!WRONG_ANNOTATION_TARGET!>@smartset<!> fun foo() = y
}
}
@@ -2,7 +2,7 @@ package
public final class My {
public constructor My(/*0*/ x: kotlin.Int)
public final var y: kotlin.Int
smartget() public final var y: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
base() smartget() smartset() public final fun foo(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
@@ -2,8 +2,8 @@ package
public final class A {
public constructor A(/*0*/ @param:Ann() Ann() x: kotlin.Int, /*1*/ @param:RepeatableAnn() Ann() y: kotlin.Int)
@property:Ann() @property:RepeatableAnn() @field:Ann() RepeatableAnn() public final val a: kotlin.Int = 0
@property:Ann() Ann() @field:Ann() public final val b: kotlin.Int = 0
@property:Ann() RepeatableAnn() @property:RepeatableAnn() @field:Ann() public final val a: kotlin.Int = 0
Ann() @property:Ann() @field:Ann() public final val b: kotlin.Int = 0
@field:RepeatableAnn() @field:RepeatableAnn() public final val c: kotlin.Int = 0
@property:RepeatableAnn() RepeatableAnn() public final val d: kotlin.Int = 0
public final val x: kotlin.Int