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
Implicit view does not work if the view requires another implicit parameter #8380
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8380?orig=1 |
@adriaanm said (edited on Mar 10, 2014 10:00:22 PM UTC): implicit def view[A: Manifest](x: A): Array[A] = ??? |
@Atry said:
I think implicit def view[A: Manifest]: A => Array[A] = ???
implicitly[Int => Array[Int]] // No compiler error! |
@adriaanm said: Your version is the polymorphic type: The version I proposed swaps the order around, so that x's actual type will drive inference of A: |
@adriaanm said: |
@Atry said: |
@adriaanm said: |
The text was updated successfully, but these errors were encountered: