I just stumbled over the following definition of method to
defined by TraversableLike
(2.10.0):
override def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, A, Col[A @uV]]): Col[A @uV] = {
val b = cbf()
b.sizeHint(this)
b ++= thisCollection
b.result
}
According to this answer, the @uV
disabled variance checking. That sounds dangerous. Why would I want to do that?