aboutsummaryrefslogblamecommitdiff
path: root/tests/run/t4656.scala
blob: 4f3d189c8f92ad861731ba4eb8193eed7ecacf8c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                    
object Test {
  def f = {
    val buf = new collection.mutable.ListBuffer[Int]
    buf ++= List(1, 2, 3)
    val l = buf.toList
    buf prependToList List(4, 5, 6)
    l
  }

  def main(args: Array[String]): Unit = {
    println(f)
  }
}