summaryrefslogtreecommitdiff
path: root/test/pending/run/subarray.scala
blob: 51ec222e0dcb430290207545ee50416b4b5ce57f (plain) (blame)
1
2
3
4
5
6
7
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)
  }
}