-
Notifications
You must be signed in to change notification settings - Fork 21
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
Compiler crash when using package private modifiers and abstract types. #4559
Comments
Imported From: https://issues.scala-lang.org/browse/SI-4559?orig=1 |
@paulp said: ./a.scala:15: error: private class Private escapes its defining scope as part of type mypkg.Private[E]
trait Public[E <: M] extends Private[E] {
^
one error found That is just as true a statement if Private is private[mypkg] as if it's private. I've never heard of public classes with private parents. Is this supported in the spec? |
@lexn82 said: |
@dragos said: |
@dragos said: |
@adriaanm said (edited on Jun 2, 2011 12:44:04 AM UTC): Martin, re-assigning to you for clarification. Feel free to bounce back for the actual implementation. |
Compiles without crashing in 2.13. Also compiles in dotc after tweaking. No escaping defining scope message. |
The following code compiles under Scala-2.8.1.final but causes the compiler to crash under Scala-2.9.0.RC4.
The only workaround I can think of is to strip all the package private modifiers. Of course that would expose internal implementation as public API.
=== Versions ===
The text was updated successfully, but these errors were encountered: