summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/files/run/bugs.check3
-rw-r--r--test/files/run/bugs.scala16
2 files changed, 19 insertions, 0 deletions
diff --git a/test/files/run/bugs.check b/test/files/run/bugs.check
index d0ba581888..a6786e92a3 100644
--- a/test/files/run/bugs.check
+++ b/test/files/run/bugs.check
@@ -76,6 +76,9 @@ hello
4
>>> bug 266
+<<< bug 281
+>>> bug 281
+
<<< bug 316
>>> bug 316
diff --git a/test/files/run/bugs.scala b/test/files/run/bugs.scala
index 3866bd72f5..e0c059b758 100644
--- a/test/files/run/bugs.scala
+++ b/test/files/run/bugs.scala
@@ -367,6 +367,21 @@ object Bug266Test {
}
//############################################################################
+// Bug 281
+
+class Bug281A extends java.util.Hashtable {
+ class B { def f = rehash() }
+}
+
+object Bug281Test {
+ def main(args: Array[String]): Unit = {
+ val a = new Bug281A;
+ val b = new a.B;
+ b.f
+ }
+}
+
+//############################################################################
// Bug 316
class Bug316MyIterator with Iterator[Int] {
@@ -422,6 +437,7 @@ object Test {
test(250, Bug250Test.main(args));
test(257, Bug257Test.main(args));
test(266, Bug266Test.main(args));
+ test(281, Bug281Test.main(args));
test(316, Bug316Test.main(args));
if (errors > 0) {