aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/bugs169/pr314965/MinimalExample.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/bugs169/pr314965/MinimalExample.java b/tests/bugs169/pr314965/MinimalExample.java
new file mode 100644
index 000000000..171694cec
--- /dev/null
+++ b/tests/bugs169/pr314965/MinimalExample.java
@@ -0,0 +1,13 @@
+public aspect MinimalExample {
+ declare @type : @AnnotationWithParam("arg") * : @AnnotationWithParam2("gra");
+ // the following lines leads to a misleading compiler error
+ declare @type : @AnnotationWithParamAndTypo("arg") * : @AnnotationWithParam2("gra");
+}
+
+@interface AnnotationWithParam {
+ String value();
+}
+
+@interface AnnotationWithParam2 {
+ String value();
+}