diff options
author | Dmitry Petrashko <dark@d-d.me> | 2014-12-17 17:35:37 +0100 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2014-12-17 17:35:37 +0100 |
commit | a68980c1d322095cdd8d7a2b45b05d901072eeb1 (patch) | |
tree | 4dae525611287d910eb41672d2022a70db3f34dc /tests/pos/Arrays.scala | |
parent | 7f6d234a6aca6fd0c638aec45d867dedb2077f29 (diff) | |
parent | 4c112037290a526c66bbb782a61bcd8a60730b4b (diff) | |
download | dotty-a68980c1d322095cdd8d7a2b45b05d901072eeb1.tar.gz dotty-a68980c1d322095cdd8d7a2b45b05d901072eeb1.tar.bz2 dotty-a68980c1d322095cdd8d7a2b45b05d901072eeb1.zip |
Merge pull request #251 from dotty-staging/shared-backend
Shared 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 + } +} |