summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/t5201.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/files/run/t5201.scala b/test/files/run/t5201.scala
index a371082797..48aa7ba54c 100644
--- a/test/files/run/t5201.scala
+++ b/test/files/run/t5201.scala
@@ -1,5 +1,8 @@
object Test extends App {
+ // First make sure specific types are preserved
+ val tmp: Vector[Int] = Vector(Vector(1,2), Vector(3,4)).view.flatten.force
+
+ // Now make sure we really get a view
val seq = Seq(Seq(1, 2), Seq(3, 4)).view.flatten
-
Console.println(seq.isInstanceOf[collection.SeqView[_,_]])
}