The code compiles in Scalac, but fails in Dotty. Both candidates Predef.genericWrapArray and Predef.genericArrayOps are found, but disqualified due to type inference error.
class T {
def foo(any: AnyRef): Unit = {
any.asInstanceOf[Array[_]].iterator
}
}