aboutsummaryrefslogblamecommitdiff
path: root/tests/run/t2524.scala
blob: e806b8c3518b13e85d503803419fae00b4b4cbe9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                            
object Test {
  def main(args: Array[String]): Unit = {
    val m = new collection.mutable.HashMap[String, String] {
      override def initialSize = 0
    }
    m.toString
    m("key") = "value"
    assert(m("key") == "value")
  }
}