summaryrefslogtreecommitdiff
path: root/test/files/run/bug594.scala
blob: 0c3be3d5de8b246a11171058b0b1b7f4ec201260 (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.slice(0,2)
    for(val x <- firstTwo)
      Console.println(x)
  }
}