summaryrefslogblamecommitdiff
path: root/test/files/run/bug594.scala
blob: b120f47338c4cec14e997b32ee9d002807f04bb2 (plain) (tree)
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,2)
    for(val x <- firstTwo)
      Console.println(x)
  }
}