Following on from this question, can someone explain the following in Scala:
class Slot[+T] (var some: T) { // DOES NOT COMPILE // \"COVARIANT paramete
You need to apply a lower bound on the parameter. I'm having a hard time remembering the syntax, but I think it would look something like this:
class Slot[+T, V <: T](var some: V) { //blah }
The Scala-by-example is a bit hard to understand, a few concrete examples would have helped.