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
A companion object defined locally cannot see private constructors in its companion class.
scala> val a = { class A private; object A { new A } } <console>:25: error: constructor A in class A cannot be accessed in object A val a = { class A private; object A { new A } }
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-8002?orig=1 Reporter: Rob Norris (rnorris) Affected Versions: 2.10.3 See #3772
Sorry, something went wrong.
@retronym said: Similar to #3772
@retronym said: WIP: https://github.com/retronym/scala/compare/ticket/8002
@retronym said: scala/scala#3189
sandeep (phoenix) said: how to repair this problam ?
@lrytz said (edited on Dec 12, 2016 2:14:31 PM UTC): scala/scala#5550 fixes a "TODO" added in PR #3189 (which fixed this ticket)
retronym
No branches or pull requests
A companion object defined locally cannot see private constructors in its companion class.
The text was updated successfully, but these errors were encountered: