summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/t4761.check4
-rw-r--r--test/files/run/t4761.scala15
2 files changed, 19 insertions, 0 deletions
diff --git a/test/files/run/t4761.check b/test/files/run/t4761.check
new file mode 100644
index 0000000000..1698a57bfa
--- /dev/null
+++ b/test/files/run/t4761.check
@@ -0,0 +1,4 @@
+Vector(1, 1, 1, 1, 1)
+Vector(Vector(1, 1, 1, 1, 1))
+List(1, 2)
+List(List(1, 2))
diff --git a/test/files/run/t4761.scala b/test/files/run/t4761.scala
new file mode 100644
index 0000000000..205798b00e
--- /dev/null
+++ b/test/files/run/t4761.scala
@@ -0,0 +1,15 @@
+
+
+
+
+object Test {
+ def main(args: Array[String]) {
+ val gs = for (x <- (1 to 5)) yield { if (x % 2 == 0) List(1).seq else List(1).par }
+ println(gs.flatten)
+ println(gs.transpose)
+
+ val s = Stream(Vector(1).par, Vector(2).par)
+ println(s.flatten.toList)
+ println(s.transpose.map(_.toList).toList)
+ }
+}