diff options
author | Martin Odersky <odersky@gmail.com> | 2016-10-13 18:53:43 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-10-13 18:53:43 +0200 |
commit | f2530992f730b1d5662b6fad62e47a1e19a68c8b (patch) | |
tree | 50e60aa0af13d4fb5d6124cf3c95f4e002c576d7 /tests/pos/java-interop/1576/TagAnnotation.java | |
parent | dac5b931bcf8757070c8aa74571e52f3b4c6e5eb (diff) | |
download | dotty-f2530992f730b1d5662b6fad62e47a1e19a68c8b.tar.gz dotty-f2530992f730b1d5662b6fad62e47a1e19a68c8b.tar.bz2 dotty-f2530992f730b1d5662b6fad62e47a1e19a68c8b.zip |
Fix #1576: Parameters of Java annotations should be public
Parameters of annotation classes parsed by the Java parser should
have public val parameters. Otherwise they cannot be accessed as fields.
Diffstat (limited to 'tests/pos/java-interop/1576/TagAnnotation.java')
-rw-r--r-- | tests/pos/java-interop/1576/TagAnnotation.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/pos/java-interop/1576/TagAnnotation.java b/tests/pos/java-interop/1576/TagAnnotation.java new file mode 100644 index 000000000..3034a1a2d --- /dev/null +++ b/tests/pos/java-interop/1576/TagAnnotation.java @@ -0,0 +1,3 @@ +public @interface TagAnnotation { + public String value(); +}
\ No newline at end of file |