The following code does not compile on Scala 2.12 / 2.13. Why?
class X[U, T]
object X {
implicit def genericX[U, T](implicit ev: T <:< U): X[U, T] = new X[U, T]
}
implicitly[X[AnyRef, String]] // compiles
implicitly[X[String, Nothing]] // does not compile