summaryrefslogtreecommitdiff
path: root/test/files/neg/t10207.scala
blob: 2dfc5d75c965622443b05481ecce99416f488cca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Was:
// warning: an unexpected type representation reached the compiler backend
// Now:
// error: too many arguments (2) for method apply: (key: Int)scala.collection.mutable.ArrayBuffer[String] in trait MapLike

trait Test {
  import collection.mutable.{Map=>MMap, ArrayBuffer=>AB}

  val m = MMap((1 -> AB("one")))

  val empty = AB[String]()

  m(1, (_ => empty)) ++= AB("eins", "uno")
}