diff options
author | Paul Phillips <paulp@improving.org> | 2010-04-08 18:12:34 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-04-08 18:12:34 +0000 |
commit | ad0cb2873fd3339445ede746b0120ff775bee51d (patch) | |
tree | 6e271a88475825ec77eb622d09f93ad188a10e93 /test/files | |
parent | 0e437ba3095d732430a8b8cbd468aa74e5b307fe (diff) | |
download | scala-ad0cb2873fd3339445ede746b0120ff775bee51d.tar.gz scala-ad0cb2873fd3339445ede746b0120ff775bee51d.tar.bz2 scala-ad0cb2873fd3339445ede746b0120ff775bee51d.zip |
Fix and test for Iterator corner case.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/bug3269.check | 2 | ||||
-rw-r--r-- | test/files/run/bug3269.scala | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/bug3269.check b/test/files/run/bug3269.check new file mode 100644 index 0000000000..c25611c15c --- /dev/null +++ b/test/files/run/bug3269.check @@ -0,0 +1,2 @@ +1 +Hello 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 + } +} |