There was an error while loading. Please reload this page.
3.1.0, 3.1.1-RC1, 3.1.1-RC2
sealed trait BoundedPair[A, B <: A] type Second[A, T <: BoundedPair[A, _ <: A]] <: A = T match { case BoundedPair[A, b] => b }
Found: b Required: A where: b is a type in type Second with bounds <: Playground.BoundedPair[?, ?]#A
Second[Animal, BoundedPair[Animal, Cat]] ⇒ Cat
Second[Animal, BoundedPair[Animal, Cat]]
Cat