summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2006-05-15 13:35:59 +0000
committerLex Spoon <lex@lexspoon.org>2006-05-15 13:35:59 +0000
commitea5e13cb941de3112a327afc257b9fa518a55b79 (patch)
tree23eaf20d51c86e542f7c6ed7199bd20e88639f49 /test/pending
parent7199ea34abfcc9c45147e6c5f6a18afa38cd3f46 (diff)
downloadscala-ea5e13cb941de3112a327afc257b9fa518a55b79.tar.gz
scala-ea5e13cb941de3112a327afc257b9fa518a55b79.tar.bz2
scala-ea5e13cb941de3112a327afc257b9fa518a55b79.zip
Diffstat (limited to 'test/pending')
-rw-r--r--test/pending/run/subarray.check2
-rw-r--r--test/pending/run/subarray.scala8
2 files changed, 10 insertions, 0 deletions
diff --git a/test/pending/run/subarray.check b/test/pending/run/subarray.check
new file mode 100644
index 0000000000..814f4a4229
--- /dev/null
+++ b/test/pending/run/subarray.check
@@ -0,0 +1,2 @@
+one
+two
diff --git a/test/pending/run/subarray.scala b/test/pending/run/subarray.scala
new file mode 100644
index 0000000000..51ec222e0d
--- /dev/null
+++ b/test/pending/run/subarray.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,1)
+ for(val x <- firstTwo)
+ Console.println(x)
+ }
+}