aboutsummaryrefslogtreecommitdiff
path: root/tests/repl/import.check
blob: ccaa521903c0f13b34339b39ea14aa41ffa3ba7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
scala> import collection.mutable._
import collection.mutable._
scala> val buf = new ListBuffer[Int]
buf: scala.collection.mutable.ListBuffer[Int] = ListBuffer()
scala> buf += 22
res0: scala.collection.mutable.ListBuffer[Int] = ListBuffer(22)
scala> buf ++= List(1, 2, 3)
res1: scala.collection.mutable.ListBuffer[Int] = ListBuffer(22, 1, 2, 3)
scala> buf.toList
res2: scala.collection.immutable.List[Int] = List(22, 1, 2, 3)
scala> :quit