diff options
author | paltherr <paltherr@epfl.ch> | 2003-11-17 18:05:41 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-11-17 18:05:41 +0000 |
commit | 7beb013c4d0668ae7d08c554bcaf6e174ab41855 (patch) | |
tree | ebe7604a23d237b4cdf28f2df26677dc05387bb8 | |
parent | b072c8ee42744f253f157e94f4f3e0a6d0ac46cb (diff) | |
download | scala-7beb013c4d0668ae7d08c554bcaf6e174ab41855.tar.gz scala-7beb013c4d0668ae7d08c554bcaf6e174ab41855.tar.bz2 scala-7beb013c4d0668ae7d08c554bcaf6e174ab41855.zip |
- Added bugs 225 and 226
-rw-r--r-- | test/files/run/bugs.check | 6 | ||||
-rw-r--r-- | test/files/run/bugs.scala | 33 |
2 files changed, 39 insertions, 0 deletions
diff --git a/test/files/run/bugs.check b/test/files/run/bugs.check index 1a77868946..178be45299 100644 --- a/test/files/run/bugs.check +++ b/test/files/run/bugs.check @@ -32,3 +32,9 @@ ok <<< bug 213 >>> bug 213 +<<< bug 225 +>>> bug 225 + +<<< bug 226 +>>> bug 226 + 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(); |