@@ -8,15 +8,22 @@ import scala.reflect.Enum
8
8
9
9
class SomeObject (val s : String )
10
10
11
- class MyAnnotation extends StaticAnnotation
11
+ @ java.lang.annotation.Documented
12
+ class MyAnnotation extends StaticAnnotation // expected: @Documented class MyAnnotation extends StaticAnnotation
12
13
13
- class AnnotationWithArg (val s : String , val o : SomeObject ) extends StaticAnnotation
14
+ @ java.lang.annotation.Documented
15
+ class AnnotationWithArg (val s : String , val o : SomeObject ) extends StaticAnnotation // expected: @Documented class AnnotationWithArg(val s: String, val o: SomeObject) extends StaticAnnotation
14
16
15
- class AnnotationWithMultiArg (val i : Int , val s : String , val c : Char * ) extends StaticAnnotation
17
+ @ java.lang.annotation.Documented
18
+ class AnnotationWithMultiArg (val i : Int , val s : String , val c : Char * ) extends StaticAnnotation // expected: @Documented class AnnotationWithMultiArg(val i: Int, val s: String, val c: Char*) extends StaticAnnotation
16
19
17
- class EnumAnnotation (val e : Enum ) extends StaticAnnotation
20
+ @ java.lang.annotation.Documented
21
+ class EnumAnnotation (val e : Enum ) extends StaticAnnotation // expected: @Documented class EnumAnnotation(val e: Enum) extends StaticAnnotation
18
22
19
- class ClassAnnotation [T ](val c : Class [T ]) extends StaticAnnotation
23
+ @ java.lang.annotation.Documented
24
+ class ClassAnnotation [T ](val c : Class [T ]) extends StaticAnnotation // expected: @Documented class ClassAnnotation[T](val c: Class[T]) extends StaticAnnotation
25
+
26
+ class NotDocumentedAnnotation extends StaticAnnotation
20
27
21
28
@ AnnotationWithMultiArg (2 , " cda" , 'a' , 'b' , 'c' ) @ MyAnnotation class AnnotatedClass
22
29
@@ -28,3 +35,5 @@ class AnnotatedMethods
28
35
@ MyAnnotation @ AnnotationWithMultiArg (2 , " cda" , 'a' , 'b' , 'c' ) def a : String
29
36
= ???
30
37
}
38
+
39
+ /* <-*/ @ NotDocumentedAnnotation /* ->*/ class ClassWithoutAnnotation (/* <-*/ @ NotDocumentedAnnotation /* ->*/ val a : String )
0 commit comments