-
Notifications
You must be signed in to change notification settings - Fork 21
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
ambiguity in first phase of implicit argument search prevents second phase unless the method call has an expected type #6667
Comments
Imported From: https://issues.scala-lang.org/browse/SI-6667?orig=1 |
@dcsobral said: |
@retronym said: But, we'll test both in the fix for this bug. object Test {
abstract class Box {
val value: Int
}
implicit val a: Box = new Box {
val value= 1
}
def main(args: Array[String]) {
implicit val b: Box= new Box {
val value= 2
}
new Object {
new Test()
}
// compare with:
// new Test()
}
} |
@dcsobral said: class Test()(implicit x: Bop.Box) {
println(x.value)
}
object Bop {
abstract class Box {
val value: Int
}
implicit val a: Box = new Box {
val value= 1
}
def main(args: Array[String]) {
implicit val b: Box= new Box {
val value= 2
}
new Object {
new Test()
}
// compare with:
// new Test()
}
} |
@paulp said: |
@retronym said: |
@retronym said: |
@retronym said: |
@retronym said: |
See:
The text was updated successfully, but these errors were encountered: