-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allowing overloaded methods with default arguments? #48
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
I'm also hoping to loosen the restriction in 2.12: https://issues.scala-lang.org/browse/SI-8161 |
Right! I did remember that you've done something along these lines, but could find a pull request :) |
I think Dotty should simply do what Scala 2.12/13 does in this respect. I do not have strong feelings about it, but am currently more doubtful than optimistic. Arguments against the change would be:
|
Closing that issue, as it seems that we have some kind of consensus. |
Honestly, I'm not sure if it deserves effort to be solved, but I've had been asked why is this disallowed.
I believe that specific line is here: https://github.com/lampepfl/dotty/pull/47/files#diff-2fe35c59082b97d7128120593f9ec2e7R129
see also https://stackoverflow.com/questions/4652095/why-does-the-scala-compiler-disallow-overloaded-methods-with-default-arguments
The text was updated successfully, but these errors were encountered: