summaryrefslogtreecommitdiff
path: root/test/files/run/t5201.scala
diff options
context:
space:
mode:
authorJosh Suereth <joshua.suereth@gmail.com>2012-05-08 21:13:07 -0400
committerJosh Suereth <joshua.suereth@gmail.com>2012-05-08 21:13:07 -0400
commit67b95ceef906e72574161fd85d6f5928ec83161a (patch)
tree99105630dbb0ab2e38a79ffe5849056bcd60ea27 /test/files/run/t5201.scala
parenta516098d4ed774c5ff4f53ef22ed8eb90dc1b8d5 (diff)
downloadscala-67b95ceef906e72574161fd85d6f5928ec83161a.tar.gz
scala-67b95ceef906e72574161fd85d6f5928ec83161a.tar.bz2
scala-67b95ceef906e72574161fd85d6f5928ec83161a.zip
Added an additional test case rather than leaving it in my REPL.
Diffstat (limited to 'test/files/run/t5201.scala')
-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[_,_]])
}