summaryrefslogblamecommitdiff
path: root/test/files/run/transform.scala
blob: 82f924950d62e8de6a251ba5888cff69123604ae (plain) (tree)
1
2
3
4
5
6
7
8
             
                            
  




                                         
object Test {
  val x = (1 to 10).toBuffer
  
  def main(args: Array[String]): Unit = {
    x transform (_ * 2)
    assert(x.sum == (1 to 10).sum * 2)
  }
}