Some usages of JetClassOrObject.isAnnotation() are removed. Related test fixed.

This commit is contained in:
Mikhail Glukhikh
2015-07-14 16:01:40 +03:00
parent 7f12965741
commit 2a1058ed63
8 changed files with 30 additions and 25 deletions
@@ -1,12 +1,12 @@
annotation class B
class A {
annotation companion object {}
<!WRONG_ANNOTATION_TARGET!>annotation<!> companion object {}
}
annotation object O {}
<!WRONG_ANNOTATION_TARGET!>annotation<!> object O {}
annotation interface T {}
<!WRONG_ANNOTATION_TARGET!>annotation<!> interface T {}
<!WRONG_ANNOTATION_TARGET!>annotation<!> fun f() = 0
@@ -32,7 +32,7 @@ kotlin.annotation.annotation() internal object O {
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
kotlin.annotation.annotation() internal interface T : kotlin.Annotation {
kotlin.annotation.annotation() internal interface T {
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String