From 42ae44afedeb99e0f7ddc927e30b290f356c5ecd Mon Sep 17 00:00:00 2001 From: paltherr Date: Fri, 2 Apr 2004 13:23:28 +0000 Subject: - Added bug 316 --- test/files/run/bugs.scala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/files/run/bugs.scala') diff --git a/test/files/run/bugs.scala b/test/files/run/bugs.scala index 63ee85ef47..3866bd72f5 100644 --- a/test/files/run/bugs.scala +++ b/test/files/run/bugs.scala @@ -366,6 +366,19 @@ object Bug266Test { } } +//############################################################################ +// Bug 316 + +class Bug316MyIterator with Iterator[Int] { + def hasNext = false; + def next = 42; +} + +object Bug316Test { + def main(args: Array[String]): Unit = + (new Bug316MyIterator) filter { x: Int => x == 1 }; +} + //############################################################################ // Main @@ -409,6 +422,7 @@ object Test { test(250, Bug250Test.main(args)); test(257, Bug257Test.main(args)); test(266, Bug266Test.main(args)); + test(316, Bug316Test.main(args)); if (errors > 0) { System.out.println(); -- cgit v1.2.3