summaryrefslogblamecommitdiff
path: root/test/files/run/t4294.scala
blob: e15c716047a0ce92c5557ea836d06e6eb9c103d9 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                 





                                                              
                                                                     
                                                                                 

   
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)
  }
}