diff options
Diffstat (limited to 'tests')
-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 + } +} |