Skip to content

Implicit conversion of Array[_] failed #2250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
liufengyun opened this issue Apr 13, 2017 · 0 comments · Fixed by #2983
Closed

Implicit conversion of Array[_] failed #2250

liufengyun opened this issue Apr 13, 2017 · 0 comments · Fixed by #2983

Comments

@liufengyun
Copy link
Contributor

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
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant