diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-12-01 16:58:53 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-12-16 13:15:01 +0100 |
commit | d23cab1dcff8c28d4817f3dccfefbc8cb58f017f (patch) | |
tree | c8807828b910bc8953079d1e00619d6cbb12e8b9 /tests/pos/Arrays.scala | |
parent | 6446bbb41c48c91388373e5221b9874c676ccbfd (diff) | |
download | dotty-d23cab1dcff8c28d4817f3dccfefbc8cb58f017f.tar.gz dotty-d23cab1dcff8c28d4817f3dccfefbc8cb58f017f.tar.bz2 dotty-d23cab1dcff8c28d4817f3dccfefbc8cb58f017f.zip |
Handle Arrays in backend.
Diffstat (limited to 'tests/pos/Arrays.scala')
-rw-r--r-- | tests/pos/Arrays.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos/Arrays.scala b/tests/pos/Arrays.scala new file mode 100644 index 000000000..751652002 --- /dev/null +++ b/tests/pos/Arrays.scala @@ -0,0 +1,8 @@ +object Arrays{ + def main(a: Array[String]) = { + val stringArr = new Array[String](1) + stringArr(0) = "foo" + val intArr = new Array[Int](1) + stringArr(0) = intArr(0).toString + } +} |