diff options
author | Martin Odersky <odersky@gmail.com> | 2006-05-16 10:55:19 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-05-16 10:55:19 +0000 |
commit | bc46a1b53603f1ecfa9061466c36909c51a19a55 (patch) | |
tree | edaa5496f8f85dd1203784f284c231547a7ff410 /test/files/run | |
parent | 703ba993c311aa8d452608fc94414e2778218fd6 (diff) | |
download | scala-bc46a1b53603f1ecfa9061466c36909c51a19a55.tar.gz scala-bc46a1b53603f1ecfa9061466c36909c51a19a55.tar.bz2 scala-bc46a1b53603f1ecfa9061466c36909c51a19a55.zip |
Fixed bug 593
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/bug594.check | 2 | ||||
-rw-r--r-- | test/files/run/bug594.scala | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/bug594.check b/test/files/run/bug594.check new file mode 100644 index 0000000000..814f4a4229 --- /dev/null +++ b/test/files/run/bug594.check @@ -0,0 +1,2 @@ +one +two diff --git a/test/files/run/bug594.scala b/test/files/run/bug594.scala new file mode 100644 index 0000000000..b120f47338 --- /dev/null +++ b/test/files/run/bug594.scala @@ -0,0 +1,8 @@ +object Test { + def main(args: Array[String]): Unit = { + val array = Array("one", "two", "three") + val firstTwo: Array[String] = array.subArray(0,2) + for(val x <- firstTwo) + Console.println(x) + } +} |