-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Ambiguous overloads with type parameter and implicit conversion. #1381
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
Comments
It looks like in the original code they added the equivalent of |
The problem is because dotty currently allows implicit conversions when deciding whether a method is applicable to the parameters of another, which is used as the test in isAsSpecific. |
Fix scala#1381: Overloading is now changed so that we first try without implicit searches. Only if that leaves no applicable alternatives we try again with implicit search turned on. This also fixes test case t2660, which got moved from neg to pos.
Fix scala#1381: Overloading is now changed so that we first try without implicit searches. Only if that leaves no applicable alternatives we try again with implicit search turned on. This also fixes test case t2660, which got moved from neg to pos.
Adds the original test form scala#1381. t2660 looks similar. Also adds some unrelated tests I had in the queue that now compile.
The text was updated successfully, but these errors were encountered: