aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2017-01-22 14:06:39 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2017-01-22 14:06:39 +0100
commit945001d439d062f42515f0bb4b8b86136b09fe4c (patch)
treeedd021a4c4c5cceaead9b1b911a369fcd96e169e /tests/pos
parent6c3814aff996a464880e36a0ab3d2a10a2051bfe (diff)
downloaddotty-945001d439d062f42515f0bb4b8b86136b09fe4c.tar.gz
dotty-945001d439d062f42515f0bb4b8b86136b09fe4c.tar.bz2
dotty-945001d439d062f42515f0bb4b8b86136b09fe4c.zip
Test that #1687 is fixed.
The b-test would compile for a millenia without the fix.
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/i1687.scala10
-rw-r--r--tests/pos/i1687b.scala19
2 files changed, 29 insertions, 0 deletions
diff --git a/tests/pos/i1687.scala b/tests/pos/i1687.scala
new file mode 100644
index 000000000..d91c851e6
--- /dev/null
+++ b/tests/pos/i1687.scala
@@ -0,0 +1,10 @@
+object O {
+ def f: String = {
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1
+ }
+}
diff --git a/tests/pos/i1687b.scala b/tests/pos/i1687b.scala
new file mode 100644
index 000000000..46bb6649c
--- /dev/null
+++ b/tests/pos/i1687b.scala
@@ -0,0 +1,19 @@
+object O {
+ def f: String = {
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1 +
+ "1" + 1 + "1" + 1
+ }
+}