diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2016-04-14 17:08:21 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2016-04-14 17:08:21 +0200 |
commit | 4d805dd6806ab85981c77683681a7e31d6222238 (patch) | |
tree | 99b59a692f1569d0a9f3e3c20d34b7278205768f /tests/pos | |
parent | c47eba5dd805c355efa93d21ac881d1ca755eef4 (diff) | |
download | dotty-4d805dd6806ab85981c77683681a7e31d6222238.tar.gz dotty-4d805dd6806ab85981c77683681a7e31d6222238.tar.bz2 dotty-4d805dd6806ab85981c77683681a7e31d6222238.zip |
Check that #1216 is fixed.
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/i1216.scala | 11 | ||||
-rw-r--r-- | tests/pos/i1216a.scala | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/pos/i1216.scala b/tests/pos/i1216.scala new file mode 100644 index 000000000..74c2d6c9a --- /dev/null +++ b/tests/pos/i1216.scala @@ -0,0 +1,11 @@ +object Main { + val MAX = 10 + val s1, s2, target = new Array[Long](MAX) + + var i, j = 0 + + while (i < MAX) { + target(i) = s1(i) + s2(i) + i+= 1 + } +} diff --git a/tests/pos/i1216a.scala b/tests/pos/i1216a.scala new file mode 100644 index 000000000..0652ff7a2 --- /dev/null +++ b/tests/pos/i1216a.scala @@ -0,0 +1,11 @@ +object Main { + val MAX = 10 + val s1, s2, target = new Array[Long](MAX) + + var i = 0 + + while (i < MAX) { + target(i) = s1(i) + s2(i) + i+= 1 + } +} |