Why is this implicit ambiguity behaviour happening?

Scala specification says: If there are several eligible arguments which match the implicit parameter’s type, a most specific one will be chosen using the rules of static overloading resolution. https://www.scala-lang.org/files/archive/spec/2.13/07-implicits.html#implicit-parameters The relative weight of an alternative A over an alternative B is a number from 0 to 2, defined as the sum of 1 if … Read more