We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class A: def greeting(name: String = "you") = s"Hello $name" class B: val a = A() export a.* val b = B() b.a.greeting() // works b.greeting("John") // works b.greeting() // nope !
the call of b.greeting() gives a compilation error: missing argument for parameter name of method greeting in class B: (name: String): String
b.greeting()
missing argument for parameter name of method greeting in class B: (name: String): String
should have b.a.greeting() and b.greeting() be equivalent, i.e. b.gretting() should know about the default value of it's parameter.
b.a.greeting()
b.gretting()
The text was updated successfully, but these errors were encountered:
Retain HasDefaultParams flag on export.
1c21ca3
Fixes scala#14020
8ae4a15
f4ce826
9e357d0
odersky
Successfully merging a pull request may close this issue.
Compiler version 3.1.1-RC1
Minimized code
Output
the call of
b.greeting()
gives a compilation error:missing argument for parameter name of method greeting in class B: (name: String): String
Expectation
should have
b.a.greeting()
andb.greeting()
be equivalent, i.e.b.gretting()
should know about the default value of it's parameter.The text was updated successfully, but these errors were encountered: