From ad0cb2873fd3339445ede746b0120ff775bee51d Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 8 Apr 2010 18:12:34 +0000 Subject: Fix and test for Iterator corner case. --- test/files/run/bug3269.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/files/run/bug3269.scala (limited to 'test/files/run/bug3269.scala') diff --git a/test/files/run/bug3269.scala b/test/files/run/bug3269.scala new file mode 100644 index 0000000000..17e42cdb0e --- /dev/null +++ b/test/files/run/bug3269.scala @@ -0,0 +1,9 @@ +object Test { + def main(args: Array[String]): Unit = { + val it = List(1).iterator ++ { println("Hello"); Iterator.empty } + println(it.next) + it.hasNext + it.hasNext + it.hasNext + } +} -- cgit v1.2.3