aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t2818.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t2818.scala')
-rw-r--r--tests/run/t2818.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run/t2818.scala b/tests/run/t2818.scala
new file mode 100644
index 000000000..7829b0251
--- /dev/null
+++ b/tests/run/t2818.scala
@@ -0,0 +1,6 @@
+object Test extends dotty.runtime.LegacyApp {
+ println((List.range(1L, 15L) :\ 0L) (_ + _))
+ println((List.range(1L, 1000000L) :\ 0L) (_ + _))
+ println((List.fill(5)(1) :\ 1) (_ - _))
+ println((List.fill(1000000)(1) :\ 1) (_ - _))
+}