ToArray in Scala 2.10 Milestone

The following Scala code works fine in Scala 2.9, but it generates a compiler error in Scala 2.10 Milestone. Can someone give me a hint on how to create an array:

type Lit = Array[Int]
var list = List[Lit].empty
list ::= Array(1,2,3)
list ::= Array(4,5)
val arr = list.toArray

Error message in Scala 2.10 "No ArrayTag is available for Lit".

Also, should I always create a new ArrayTag array for new types?

Thank.

+5
source share
1 answer

This is a mistake, I filed it: https://issues.scala-lang.org/browse/SI-5769

+3
source

All Articles