diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-03-25 11:07:32 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-03-25 11:07:32 +0100 |
commit | 2aeb90778eafb8c3afdb102989546dbe28a41da4 (patch) | |
tree | b0723c972d984e14f6fdea4a47011eb23cea4cc6 /test | |
parent | 4aa58d48d27bb722290c12335da82f32021b8ede (diff) | |
parent | aa1e1d09fe2a2c2cc0b88a5a56f1a9010ac05092 (diff) | |
download | scala-2aeb90778eafb8c3afdb102989546dbe28a41da4.tar.gz scala-2aeb90778eafb8c3afdb102989546dbe28a41da4.tar.bz2 scala-2aeb90778eafb8c3afdb102989546dbe28a41da4.zip |
Merge pull request #3644 from retronym/ticket/8431
SI-8428 Fix regression in iterator concatenation
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t8428.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t8428.scala b/test/files/run/t8428.scala new file mode 100644 index 0000000000..7da1207b7b --- /dev/null +++ b/test/files/run/t8428.scala @@ -0,0 +1,12 @@ +object Test extends App { + val xs = List.tabulate(4)(List(_)) + val i = xs.map(_.iterator).reduce { (a,b) => + a.hasNext + a ++ b + } + + val r1 = i.toList + val r2 = xs.flatten.toList + + assert(r1 == r2, r1) +} |