-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Implicit resolution fails for overloaded method with type parameter #3769
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
Fix in scalac for the same bug: scala/scala#7396 |
The attempted fix in scalac is still not merged. The best summary is from @adriaanm' on scala/scala#7396:
So, one can argue that the compiler and the spec actually agree: It's not a selection To fix this on the typer side would be very messy, I fear. This is also born out by the fact that the attepted fix in scalac did not make it in so far. So I prefer to declare the status quo as law and fix it on the spec side. |
I understand that the fix is messy but this also appears like a massive oversight from a language usage perspective, it seems completely arbitrary that extension methods work without type parameters but fail with them. Also if the spec is unclear when it comes to ordering then we should try and fix the spec so it is clear rather than trying to use the current ambiguity as a justification to not fix an issue because its inconvenient to do so. |
Fixed by #12719 |
Dotty seems to have inherited this issue from Scala: scala/bug#9523
The text was updated successfully, but these errors were encountered: