summaryrefslogtreecommitdiff
path: root/test/files/neg/t3236-neg/IntAnnotation.java
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2016-11-02 22:14:36 +0100
committerLukas Rytz <lukas.rytz@gmail.com>2016-11-02 22:14:36 +0100
commit9b27a08f78b09f208792835de4673e20e4121284 (patch)
tree3ad6a38f41ea109c9a1dc8bc453918208455c220 /test/files/neg/t3236-neg/IntAnnotation.java
parent74c613bd45df26c96833d5eecde6de5bb59d1a4f (diff)
downloadscala-9b27a08f78b09f208792835de4673e20e4121284.tar.gz
scala-9b27a08f78b09f208792835de4673e20e4121284.tar.bz2
scala-9b27a08f78b09f208792835de4673e20e4121284.zip
neg test for parsing constants in Java sources
Diffstat (limited to 'test/files/neg/t3236-neg/IntAnnotation.java')
-rw-r--r--test/files/neg/t3236-neg/IntAnnotation.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t3236-neg/IntAnnotation.java b/test/files/neg/t3236-neg/IntAnnotation.java
new file mode 100644
index 0000000000..2ffad8890c
--- /dev/null
+++ b/test/files/neg/t3236-neg/IntAnnotation.java
@@ -0,0 +1,7 @@
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
+@Retention(RetentionPolicy.RUNTIME)
+public @interface IntAnnotation {
+ int value();
+}