mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
IDEA-105110 (check repeatable annotation container applicability)
This commit is contained in:
@@ -42,3 +42,14 @@ class DupTypeAnno {
|
||||
|
||||
static <T> void m() { }
|
||||
}
|
||||
|
||||
@interface AA7 { A7[] value() default { }; }
|
||||
@Target({METHOD}) @Repeatable(<error descr="Target of container annotation 'AA7' is not a subset of target of this annotation">AA7.class</error>) @interface A7 { }
|
||||
|
||||
@Target({METHOD}) @interface AA8 { A8[] value() default { }; }
|
||||
@Target({METHOD, FIELD}) @Repeatable(AA8.class) @interface A8 { }
|
||||
class C8 {
|
||||
@A8 int f1;
|
||||
<error descr="Container annotation '@AA8' is not applicable to field">@A8</error> <error descr="Container annotation '@AA8' is not applicable to field">@A8</error> int f2;
|
||||
@A8 @A8 void m() { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user