diff options
Diffstat (limited to 'tests/run/breakout.scala')
-rw-r--r-- | tests/run/breakout.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run/breakout.scala b/tests/run/breakout.scala new file mode 100644 index 000000000..a58191046 --- /dev/null +++ b/tests/run/breakout.scala @@ -0,0 +1,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(", ")) +} |