-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
trait Map2[K] {
def get(k: K) = null
def foo = {
this match {
case that: Map2[b] => that.get(3.asInstanceOf[b])
case that: Map2[c] => that.get(4.asInstanceOf[K])
case _ => get(5.asInstanceOf[K])
}
}
}gets wrong types for binding in 3.asInstanceOf[b] and 4.asInstanceOf[K] involving b and c.
The full tasty pretty printed is here.