summaryrefslogtreecommitdiff
path: root/test/files/pos/t1029
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t1029')
-rw-r--r--test/files/pos/t1029/Test_1.scala7
-rw-r--r--test/files/pos/t1029/Test_2.scala3
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/t1029/Test_1.scala b/test/files/pos/t1029/Test_1.scala
new file mode 100644
index 0000000000..e828087f2c
--- /dev/null
+++ b/test/files/pos/t1029/Test_1.scala
@@ -0,0 +1,7 @@
+class ann(a: Array[Int]) extends StaticAnnotation
+
+object Test1 {
+ // bug #1029
+ @ann(Array(10, 2)) def u = ()
+ val v: String @ann(Array(13, 2)) = "-1"
+}
diff --git a/test/files/pos/t1029/Test_2.scala b/test/files/pos/t1029/Test_2.scala
new file mode 100644
index 0000000000..00589052cb
--- /dev/null
+++ b/test/files/pos/t1029/Test_2.scala
@@ -0,0 +1,3 @@
+object Test {
+ val t = Test1
+}