From 7beb013c4d0668ae7d08c554bcaf6e174ab41855 Mon Sep 17 00:00:00 2001 From: paltherr Date: Mon, 17 Nov 2003 18:05:41 +0000 Subject: - Added bugs 225 and 226 --- test/files/run/bugs.scala | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'test/files/run/bugs.scala') 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 @@ -177,6 +177,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 @@ -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(); -- cgit v1.2.3