aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t3521
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t3521')
-rw-r--r--tests/untried/pos/t3521/DoubleValue.java7
-rw-r--r--tests/untried/pos/t3521/a.scala4
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/pos/t3521/DoubleValue.java b/tests/untried/pos/t3521/DoubleValue.java
new file mode 100644
index 000000000..e8c093890
--- /dev/null
+++ b/tests/untried/pos/t3521/DoubleValue.java
@@ -0,0 +1,7 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.FIELD)
+public @interface DoubleValue {
+ double value();
+} \ No newline at end of file
diff --git a/tests/untried/pos/t3521/a.scala b/tests/untried/pos/t3521/a.scala
new file mode 100644
index 000000000..e9619b76e
--- /dev/null
+++ b/tests/untried/pos/t3521/a.scala
@@ -0,0 +1,4 @@
+class Test {
+ @DoubleValue(-0.05)
+ var a = 0
+}