Skip to content
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

Regression in implicit selection #8280

Closed
scabug opened this issue Feb 13, 2014 · 3 comments
Closed

Regression in implicit selection #8280

scabug opened this issue Feb 13, 2014 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Feb 13, 2014

Works in 2.10, but in master:

scala> implicit val f1: Int => String  = _ => "Int" ; implicit val f2: Long => String = _ => "Long"
f1: Int => String = <function1>
f2: Long => String = <function1>

scala> (5: String)
<console>:15: error: type mismatch;
 found   : Int(5)
 required: String
Note that implicit conversions are not applicable because they are ambiguous:
 both value f1 of type => Int => String
 and value f2 of type => Long => String
 are possible conversion functions from Int(5) to String
              (5: String)
               ^

Pull request coming in a minute.

@scabug
Copy link
Author

scabug commented Feb 13, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8280?orig=1
Reporter: @paulp

@scabug
Copy link
Author

scabug commented Feb 13, 2014

@paulp said:
scala/scala#3524

@scabug
Copy link
Author

scabug commented Feb 14, 2014

@adriaanm said:
scala/scala#3524

@scabug scabug closed this as completed Feb 14, 2014
@scabug scabug added this to the 2.11.0-RC1 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants