summaryrefslogtreecommitdiff
path: root/test/files/run/bugs.scala
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-11-17 18:05:41 +0000
committerpaltherr <paltherr@epfl.ch>2003-11-17 18:05:41 +0000
commit7beb013c4d0668ae7d08c554bcaf6e174ab41855 (patch)
treeebe7604a23d237b4cdf28f2df26677dc05387bb8 /test/files/run/bugs.scala
parentb072c8ee42744f253f157e94f4f3e0a6d0ac46cb (diff)
downloadscala-7beb013c4d0668ae7d08c554bcaf6e174ab41855.tar.gz
scala-7beb013c4d0668ae7d08c554bcaf6e174ab41855.tar.bz2
scala-7beb013c4d0668ae7d08c554bcaf6e174ab41855.zip
- Added bugs 225 and 226
Diffstat (limited to 'test/files/run/bugs.scala')
-rw-r--r--test/files/run/bugs.scala33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/files/run/bugs.scala b/test/files/run/bugs.scala
index 8e9507a2a6..b83053eef2 100644
--- a/test/files/run/bugs.scala
+++ b/test/files/run/bugs.scala
@@ -178,6 +178,37 @@ object Bug213Test {
}
//############################################################################
+// Bug 225
+
+case class Bug225C();
+
+object Bug225Test {
+
+ def main(args: Array[String]): Unit = {
+ val a = new Array[Array[Bug225C]](2);
+ a(0) = new Array[Bug225C](2);
+ a(0)(0) = new Bug225C();
+ }
+}
+
+//############################################################################
+// Bug 226
+
+object Bug226Test {
+
+ def id[a](xs: Array[a]): Array[a] = xs;
+
+ def main(args: Array[String]): Unit = {
+ var xs = new Array[Int](1);
+ class X { xs };
+ xs = id(xs);
+ id(xs);
+ ()
+ }
+
+}
+
+//############################################################################
// Main
object Test {
@@ -209,6 +240,8 @@ object Test {
test(174, Bug174Test.main(args));
test(176, Bug176Test.main(args));
test(213, Bug213Test.main(args));
+ test(225, Bug225Test.main(args));
+ test(226, Bug226Test.main(args));
if (errors > 0) {
System.out.println();