aboutsummaryrefslogtreecommitdiff
path: root/tests/pending
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-08-24 13:48:26 +0200
committerMartin Odersky <odersky@gmail.com>2016-08-26 11:13:17 +0200
commite1dc0b46a81a507ca040dca05a98f49fd6520d25 (patch)
treef812e060daaa9a6152b045de4f102e233d08d1c1 /tests/pending
parentb41cff6fa4ccc593916790364424051d9eef200d (diff)
downloaddotty-e1dc0b46a81a507ca040dca05a98f49fd6520d25.tar.gz
dotty-e1dc0b46a81a507ca040dca05a98f49fd6520d25.tar.bz2
dotty-e1dc0b46a81a507ca040dca05a98f49fd6520d25.zip
Move tests to right directory
Diffstat (limited to 'tests/pending')
-rw-r--r--tests/pending/neg/i533/Compat.scala7
-rw-r--r--tests/pending/neg/i533/JA.java5
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/pending/neg/i533/Compat.scala b/tests/pending/neg/i533/Compat.scala
new file mode 100644
index 000000000..16613cf5b
--- /dev/null
+++ b/tests/pending/neg/i533/Compat.scala
@@ -0,0 +1,7 @@
+object Compat {
+ def main(args: Array[String]): Unit = {
+ val x = new Array[Int](1)
+ x(0) = 10
+ println(JA.get(x))
+ }
+}
diff --git a/tests/pending/neg/i533/JA.java b/tests/pending/neg/i533/JA.java
new file mode 100644
index 000000000..92421e5b1
--- /dev/null
+++ b/tests/pending/neg/i533/JA.java
@@ -0,0 +1,5 @@
+class JA {
+ public static <T> T get(T[] arr) {
+ return arr[0];
+ }
+} \ No newline at end of file