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.
source
share