Skip to content

Commit 945001d

Browse files
committed
Test that #1687 is fixed.
The b-test would compile for a millenia without the fix.
1 parent 6c3814a commit 945001d

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

tests/pos/i1687.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
object O {
2+
def f: String = {
3+
"1" + 1 + "1" + 1 +
4+
"1" + 1 + "1" + 1 +
5+
"1" + 1 + "1" + 1 +
6+
"1" + 1 + "1" + 1 +
7+
"1" + 1 + "1" + 1 +
8+
"1" + 1 + "1" + 1
9+
}
10+
}

tests/pos/i1687b.scala

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
object O {
2+
def f: String = {
3+
"1" + 1 + "1" + 1 +
4+
"1" + 1 + "1" + 1 +
5+
"1" + 1 + "1" + 1 +
6+
"1" + 1 + "1" + 1 +
7+
"1" + 1 + "1" + 1 +
8+
"1" + 1 + "1" + 1 +
9+
"1" + 1 + "1" + 1 +
10+
"1" + 1 + "1" + 1 +
11+
"1" + 1 + "1" + 1 +
12+
"1" + 1 + "1" + 1 +
13+
"1" + 1 + "1" + 1 +
14+
"1" + 1 + "1" + 1 +
15+
"1" + 1 + "1" + 1 +
16+
"1" + 1 + "1" + 1 +
17+
"1" + 1 + "1" + 1
18+
}
19+
}

0 commit comments

Comments
 (0)