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
The code below compiles but throws an IllegalAccessError because of the private[this] access modifier.
object FinalVar { class Foo(private[this] final var i:Int) { def update(k:(Int => Unit) => Unit) = k{j => i = j} } def main(args : Array[String]) : Unit = { val foo = new Foo(0) foo.update(_(3)) } }
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-4643?orig=1 Reporter: @sbocq Affected Versions: 2.8.1, 2.9.0
Sorry, something went wrong.
@paulp said: Close enough to a duplicate of #3569. (It has to be both final and private[this].) I added a pointer there.
paulp
No branches or pull requests
The code below compiles but throws an IllegalAccessError because of the private[this] access modifier.
The text was updated successfully, but these errors were encountered: