aboutsummaryrefslogtreecommitdiff
path: root/tests/run/breakout.scala
blob: a58191046aaf41e2ff62d26eb6488ea20e460ae3 (plain) (blame)
1
2
3
4
5
6
7
8
9
import scala.collection.generic._
import scala.collection._
import scala.collection.mutable._

object Test extends dotty.runtime.LegacyApp {
	val l = List(1, 2, 3)
	val a: Array[Int] =  l.map(_ + 1)(breakOut)
	println(a.mkString(", "))
}