Skip to content

Commit 4d805dd

Browse files
committed
Check that #1216 is fixed.
1 parent c47eba5 commit 4d805dd

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

tests/pos/i1216.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
object Main {
2+
val MAX = 10
3+
val s1, s2, target = new Array[Long](MAX)
4+
5+
var i, j = 0
6+
7+
while (i < MAX) {
8+
target(i) = s1(i) + s2(i)
9+
i+= 1
10+
}
11+
}

tests/pos/i1216a.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
object Main {
2+
val MAX = 10
3+
val s1, s2, target = new Array[Long](MAX)
4+
5+
var i = 0
6+
7+
while (i < MAX) {
8+
target(i) = s1(i) + s2(i)
9+
i+= 1
10+
}
11+
}

0 commit comments

Comments
 (0)