summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-05-22 05:54:26 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-05-22 05:54:26 -0700
commit8d5ebbd09042255f91f9c2c450a3948cdbb243fc (patch)
tree7634732791d424e62d7d7c51f7cf55f4d06c9416 /test/files
parentf274ae4b3ba16eb9545469d0a12a765093b8e3d1 (diff)
parentf51dbd556480d42ea563623251a428b5b690571e (diff)
downloadscala-8d5ebbd09042255f91f9c2c450a3948cdbb243fc.tar.gz
scala-8d5ebbd09042255f91f9c2c450a3948cdbb243fc.tar.bz2
scala-8d5ebbd09042255f91f9c2c450a3948cdbb243fc.zip
Merge pull request #586 from axel22/issue/5804
Fixes SI-5804.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/t5804.check4
-rw-r--r--test/files/run/t5804.scala32
2 files changed, 36 insertions, 0 deletions
diff --git a/test/files/run/t5804.check b/test/files/run/t5804.check
new file mode 100644
index 0000000000..3ccc1c24d3
--- /dev/null
+++ b/test/files/run/t5804.check
@@ -0,0 +1,4 @@
+128
+16
+128
+32 \ No newline at end of file
diff --git a/test/files/run/t5804.scala b/test/files/run/t5804.scala
new file mode 100644
index 0000000000..b96a736035
--- /dev/null
+++ b/test/files/run/t5804.scala
@@ -0,0 +1,32 @@
+
+
+import collection.mutable._
+
+
+object Test {
+
+ def main(args: Array[String]) {
+ class CustomHashMap extends HashMap[Int, Int] {
+ override def initialSize = 65
+
+ println(table.length)
+ }
+
+ new CustomHashMap
+ new HashMap {
+ println(table.length)
+ }
+
+ class CustomHashSet extends HashSet[Int] {
+ override def initialSize = 96
+
+ println(table.length)
+ }
+
+ new CustomHashSet
+ new HashSet {
+ println(table.length)
+ }
+ }
+
+}