-
Notifications
You must be signed in to change notification settings - Fork 21
compiler fails with assertion when trait defines a closure over private[this] member #5508
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5508?orig=1
|
@paulp said: |
@adriaanm said: object Test {
trait NestedTrait { // must be nested and a trait
private[this] val _st : Int = 0 // must be private[this]
val escape = { () => _st }
}
} |
@adriaanm said: |
@adriaanm said: |
@adriaanm said: |
@retronym said: https://github.com/retronym/scala/tree/ticket/5508 |
@retronym said: |
There was strange assertion fail while compiling a project. I know scala very basic and don't sure if used construction is valid in language reference, but compiler should generate more sensible error output in my opinion.
I've attached example file with several sections. Clear ones are ok, commented make compiler fail
The text was updated successfully, but these errors were encountered: