summaryrefslogtreecommitdiff
path: root/test/files/run/t9219.scala
blob: c15f55faacc516e943e8447502b6715a4fec9b9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
object Test extends App {
  def check[U](f: Stream[Int] => U) = {
    val s = Stream.from(1)
    f(s)
    println(s)
  }

  check(_.tail)
  check(_.take(4).force)
  check(_(5))
}