summaryrefslogtreecommitdiff
path: root/test/files/run/t4294.scala
blob: e15c716047a0ce92c5557ea836d06e6eb9c103d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
object Test {
  def main(args: Array[String]) {
    // Skip test on Avian, see SI-7600 for further information
    if (!scala.tools.partest.utils.Properties.isAvian)
      run()
  }

  def run(): Unit = {
    (Stream.from(1).collect{case x if x > 5000000 => x}: Stream[Int])
    assert((Stream from 1 take 10 collect { case x if x <= 3 => x*x }).sum == 14)
  }
}