I can do following easily with Dotty:
trait Ex {type T <: Int | Seq[Int]; def f:T}
trait Ex2 extends Ex {override type T = Seq[Int]; override def f = Seq(2)}
trait Ex3 extends Ex {override type T = Int; override def f = 2}
How can I do union type subtyping without Dotty?