summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2009-11-03 16:16:51 +0000
committerPhilipp Haller <hallerp@gmail.com>2009-11-03 16:16:51 +0000
commitd7f7a3e001fb825240554a02a7cff72bef96f409 (patch)
tree0db2b15e801396e79bcf28823414e9ee4fd33a63 /test
parent04fb01d1315c39cc316f1e16715110a7f3c116cb (diff)
downloadscala-d7f7a3e001fb825240554a02a7cff72bef96f409.tar.gz
scala-d7f7a3e001fb825240554a02a7cff72bef96f409.tar.bz2
scala-d7f7a3e001fb825240554a02a7cff72bef96f409.zip
Applied patch for #2524.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t2524.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t2524.scala b/test/files/run/t2524.scala
new file mode 100644
index 0000000000..552663e9e8
--- /dev/null
+++ b/test/files/run/t2524.scala
@@ -0,0 +1,10 @@
+object Test {
+ def main(args: Array[String]) {
+ val m = new collection.mutable.HashMap[String, String] {
+ override def initialSize = 0
+ }
+ m.toString
+ m("key") = "value"
+ assert(m("key") == "value")
+ }
+}