You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 to
val sb = SettingsBuilder()`, the compiler does not crash any more. Expected behaviour: The compiler should report the invalid access to the private constructor.The text was updated successfully, but these errors were encountered: