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
apply
3.2.0, 3.4.0-RC1-bin-20231017-af6a2ef-NIGHTLY
case class Foo(x: Int = 0) extension (x: Any) private def foo = Foo export foo.apply
Error: Unexpected error when compiling T_3200b05eac-3b992a6ee3: 'assertion failed: foo does not have a default getter named apply$default$1'
This should compile as it does when apply is defined explicitly in the companion object of a class, e.g.
case class Foo(x: Int = 0) object Foo: def apply(x: Int = 0) = new Foo(x) extension (x: Any) private def foo = Foo export foo.apply
The text was updated successfully, but these errors were encountered:
Use constructor's default getters in case class synthetic apply met…
ef14582
…hods Fixes scala#18715
5f5b517
…hods (#18716) Fixes #18715
b68b34b
…hods Fixes #18715 [Cherry-picked ef14582]
nicolasstucki
Successfully merging a pull request may close this issue.
Compiler version
3.2.0, 3.4.0-RC1-bin-20231017-af6a2ef-NIGHTLY
Minimized code
Output
Expectation
This should compile as it does when
apply
is defined explicitly in the companion object of a class, e.g.The text was updated successfully, but these errors were encountered: