diff options
-rw-r--r-- | tests/disabled/not-representable/pos/t3999b.scala (renamed from tests/disabled/not-representable/t3999b.scala) | 0 | ||||
-rw-r--r-- | tests/disabled/not-representable/pos/t5544/Api_1.scala (renamed from tests/run/t5544/Api_1.scala) | 1 | ||||
-rw-r--r-- | tests/disabled/not-representable/pos/t5544/Test_2.scala (renamed from tests/run/t5544/Test_2.scala) | 0 | ||||
-rw-r--r-- | tests/disabled/not-representable/pos/t7035.scala (renamed from tests/disabled/not-representable/t7035.scala) | 0 | ||||
-rw-r--r-- | tests/disabled/not-representable/pos/t7228.scala (renamed from tests/disabled/not-representable/t7228.scala) | 0 | ||||
-rw-r--r-- | tests/pending/neg/i533/Compat.scala | 7 | ||||
-rw-r--r-- | tests/pending/neg/i533/JA.java | 5 |
7 files changed, 13 insertions, 0 deletions
diff --git a/tests/disabled/not-representable/t3999b.scala b/tests/disabled/not-representable/pos/t3999b.scala index 0f3f7d642..0f3f7d642 100644 --- a/tests/disabled/not-representable/t3999b.scala +++ b/tests/disabled/not-representable/pos/t3999b.scala diff --git a/tests/run/t5544/Api_1.scala b/tests/disabled/not-representable/pos/t5544/Api_1.scala index b4c92864d..30994fa07 100644 --- a/tests/run/t5544/Api_1.scala +++ b/tests/disabled/not-representable/pos/t5544/Api_1.scala @@ -1,3 +1,4 @@ +// Uses structural types; therefore not expressible in dotty import scala.annotation.StaticAnnotation class ann(val bar: Any) extends StaticAnnotation diff --git a/tests/run/t5544/Test_2.scala b/tests/disabled/not-representable/pos/t5544/Test_2.scala index ea9232221..ea9232221 100644 --- a/tests/run/t5544/Test_2.scala +++ b/tests/disabled/not-representable/pos/t5544/Test_2.scala diff --git a/tests/disabled/not-representable/t7035.scala b/tests/disabled/not-representable/pos/t7035.scala index b1ce66cc6..b1ce66cc6 100644 --- a/tests/disabled/not-representable/t7035.scala +++ b/tests/disabled/not-representable/pos/t7035.scala diff --git a/tests/disabled/not-representable/t7228.scala b/tests/disabled/not-representable/pos/t7228.scala index 525327857..525327857 100644 --- a/tests/disabled/not-representable/t7228.scala +++ b/tests/disabled/not-representable/pos/t7228.scala 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 |