@@ -8,15 +8,22 @@ import scala.reflect.Enum
88
99class SomeObject (val s : String )
1010
11- class MyAnnotation extends StaticAnnotation
11+ @ java.lang.annotation.Documented
12+ class MyAnnotation extends StaticAnnotation // expected: @Documented class MyAnnotation extends StaticAnnotation
1213
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
1416
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
1619
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
1822
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
2027
2128@ AnnotationWithMultiArg (2 , " cda" , 'a' , 'b' , 'c' ) @ MyAnnotation class AnnotatedClass
2229
@@ -28,3 +35,5 @@ class AnnotatedMethods
2835 @ MyAnnotation @ AnnotationWithMultiArg (2 , " cda" , 'a' , 'b' , 'c' ) def a : String
2936 = ???
3037}
38+
39+ /* <-*/ @ NotDocumentedAnnotation /* ->*/ class ClassWithoutAnnotation (/* <-*/ @ NotDocumentedAnnotation /* ->*/ val a : String )
0 commit comments