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




                                    
                   



                                          
import scala.collection.mutable._;

object Test extends Application {
  val buf = new ArrayBuffer[String];
  for(val i <- List.range(0,1000)) {
    buf += "hello";
  }

  Console.println("1000 = " + buf.length);
}