Files
kotlin-fork/compiler/testData/javaDescriptorResolver/annotations/annotationWithAnnotationInParam.java
T
Natalia.Ukhorskaya 19221e3ba6 JavaDescriptorResolver: Add resolve for annotation parameters (array, annotation, enum)
Temporary change testData for LoadJavaTest because enums in parameters of annotations in kotlin files is now unsupported
2012-08-30 10:56:33 +04:00

38 lines
623 B
Java

package annotations;
import java.lang.String;
@interface MyAnnotationWithParam {
MyAnnotation value();
}
@interface MyAnnotation {
String value();
}
@MyAnnotationWithParam(@MyAnnotation("test"))
class A {}
@interface MyAnnotation2 {
String[] value();
}
@interface MyAnnotationWithParam2 {
MyAnnotation2 value();
}
@MyAnnotationWithParam2(@MyAnnotation2({"test", "test2"}))
class B {}
@interface MyAnnotation3 {
String first();
String second();
}
@interface MyAnnotationWithParam3 {
MyAnnotation3 value();
}
@MyAnnotationWithParam3(@MyAnnotation3(first = "f", second = "s"))
class C {}