diff options
Diffstat (limited to 'test/flaky')
-rw-r--r-- | test/flaky/pos/t2868.cmds | 3 | ||||
-rw-r--r-- | test/flaky/pos/t2868/Jann.java | 5 | ||||
-rw-r--r-- | test/flaky/pos/t2868/Nest.java | 3 | ||||
-rw-r--r-- | test/flaky/pos/t2868/pick_1.scala | 7 | ||||
-rw-r--r-- | test/flaky/pos/t2868/t2868_src_2.scala | 6 |
5 files changed, 24 insertions, 0 deletions
diff --git a/test/flaky/pos/t2868.cmds b/test/flaky/pos/t2868.cmds new file mode 100644 index 0000000000..ed8124a9e0 --- /dev/null +++ b/test/flaky/pos/t2868.cmds @@ -0,0 +1,3 @@ +javac Jann.java Nest.java +scalac pick_1.scala +scalac test_2.scala diff --git a/test/flaky/pos/t2868/Jann.java b/test/flaky/pos/t2868/Jann.java new file mode 100644 index 0000000000..f5b68de7b0 --- /dev/null +++ b/test/flaky/pos/t2868/Jann.java @@ -0,0 +1,5 @@ +public @interface Jann { + public String str(); + public Nest inn(); + public int[] arr(); +} diff --git a/test/flaky/pos/t2868/Nest.java b/test/flaky/pos/t2868/Nest.java new file mode 100644 index 0000000000..53652291ad --- /dev/null +++ b/test/flaky/pos/t2868/Nest.java @@ -0,0 +1,3 @@ +public @interface Nest { + public int value(); +} diff --git a/test/flaky/pos/t2868/pick_1.scala b/test/flaky/pos/t2868/pick_1.scala new file mode 100644 index 0000000000..a211687432 --- /dev/null +++ b/test/flaky/pos/t2868/pick_1.scala @@ -0,0 +1,7 @@ +class ann(s: String) extends annotation.StaticAnnotation +class pick { + final val s = "bang!" + @ann("bang!") def foo = 1 + @Jann(str = "bang!", inn = new Nest(1), arr = Array(1, 2)) def bar = 2 + @Jann(str = "bang!", inn = new Nest(1), arr = Array(1, 2)) def baz = 3 +} diff --git a/test/flaky/pos/t2868/t2868_src_2.scala b/test/flaky/pos/t2868/t2868_src_2.scala new file mode 100644 index 0000000000..f11ef0fae2 --- /dev/null +++ b/test/flaky/pos/t2868/t2868_src_2.scala @@ -0,0 +1,6 @@ +class test { + val l = (new pick).s + val u = (new pick).foo + val c = (new pick).bar + val k = (new pick).baz +} |