summaryrefslogblamecommitdiff
path: root/test/files/run/t6628.scala
blob: 84524a7a359416d82a795a7c607c15ee84de9433 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                   
object Test {
  def coll = new Traversable[String] {
    override def foreach[U](f:String=>U) { f("1") }
  }
  val dropped = coll.view drop 1

  def main(args: Array[String]): Unit = {
    println(dropped.isEmpty)
    println(dropped.force.isEmpty)
  }
}