aboutsummaryrefslogtreecommitdiff
path: root/tests/run/arybufgrow.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/arybufgrow.scala')
-rw-r--r--tests/run/arybufgrow.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/run/arybufgrow.scala b/tests/run/arybufgrow.scala
new file mode 100644
index 000000000..b0e06166b
--- /dev/null
+++ b/tests/run/arybufgrow.scala
@@ -0,0 +1,10 @@
+import scala.collection.mutable._;
+
+object Test extends dotty.runtime.LegacyApp {
+ val buf = new ArrayBuffer[String];
+ for (i <- List.range(0,1000)) {
+ buf += "hello";
+ }
+
+ Console.println("1000 = " + buf.length);
+}