summaryrefslogtreecommitdiff
path: root/test/files/run/t1524.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t1524.scala')
-rw-r--r--test/files/run/t1524.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/t1524.scala b/test/files/run/t1524.scala
new file mode 100644
index 0000000000..4520028dda
--- /dev/null
+++ b/test/files/run/t1524.scala
@@ -0,0 +1,7 @@
+object Test extends Application {
+
+ val buf = new scala.collection.mutable.ArrayBuffer[String] { override val initialSize = 0 }
+ buf += "initial"
+ buf += "second"
+ println(buf.first)
+} \ No newline at end of file