=== What steps will reproduce the problem (please be specific and use wikiformatting)? ===
import collection.mutable._ val x: ArrayBuffer[String] = ArrayBuffer("a", "b", "c") val y: IndexedSeq[String] = x.view map (_ + "0")
This code compiles but produces a `ClassCastException` in the last line:
java.lang.ClassCastException: scala.collection.SeqViewLike$$$$anon$$3 cannot be cast to scala.collection.mutable.IndexedSeq
=== What is the expected behavior? ===
A compiler error or working code.
=== What versions of the following are you using? ===
- Scala: 2.8.1