summaryrefslogblamecommitdiff
path: root/test/files/run/arybufgrow.scala
blob: 4dccd962f27bb13c4c778e86838cd5485d9cf996 (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);
}