diff options
Diffstat (limited to 'test/files/run/breakout.scala')
-rw-r--r-- | test/files/run/breakout.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/breakout.scala b/test/files/run/breakout.scala new file mode 100644 index 0000000000..01ea08846e --- /dev/null +++ b/test/files/run/breakout.scala @@ -0,0 +1,9 @@ +import scala.collection.generic._ +import scala.collection._ +import scala.collection.mutable._ + +object Test extends Application { + val l = List(1, 2, 3) + val a: Array[Int] = l.map(_ + 1)(breakOut) + println(a.mkString(", ")) +}
\ No newline at end of file |