aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t5201.scala
blob: 70ab6e9ae816023d04dceceb0018c02241ff5500 (plain) (blame)
1
2
3
4
5
6
7
8
object Test extends dotty.runtime.LegacyApp {
  // 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[_,_]])
}