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


                                                                     
    
                                                                                 

   
object Test {
  def main(args: Array[String]) {
    (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)
  }
}