Skip to content
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

AssertionError in NamesDefaults with private constructor #5058

Closed
scabug opened this issue Oct 5, 2011 · 2 comments
Closed

AssertionError in NamesDefaults with private constructor #5058

scabug opened this issue Oct 5, 2011 · 2 comments

Comments

@scabug
Copy link

scabug commented Oct 5, 2011

For the attached source, the compiler crashes with java.lang.AssertionError: assertion failed: Settings.this.fromBuilder(new Test.this.SettingsBuilder) at scala.tools.nsc.typechecker.NamesDefaults$class.baseFunBlock$1(NamesDefaults.scala:228)

The mistake in the code is that Settings cannot access the SettingsBuilderconstructor any more. Thus, if I correct toval sb = SettingsBuilder()`, the compiler does not crash any more. Expected behaviour: The compiler should report the invalid access to the private constructor.

@scabug
Copy link
Author

scabug commented Oct 5, 2011

Imported From: https://issues.scala-lang.org/browse/SI-5058?orig=1
Reporter: @Sciss
Affected Versions: 2.9.1
Attachments:

  • Test.scala (created on Oct 5, 2011 3:25:29 PM UTC, 543 bytes)

@scabug
Copy link
Author

scabug commented Oct 30, 2011

@paulp said:
#4645, #4685, #4707, #4987, #5058 are all the same bug. Consolidating under #4987.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants