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
➜ ~ scala Welcome to Scala 2.13.8 (OpenJDK 64-Bit Server VM, Java 18.0.1.1). Type in expressions for evaluation. Or try :help. scala> class C(var c: Int) ; class D(c: Int) extends C(c) { def f = c } class C class D scala> val d = new D(42); d.f; d.c = 27; d.f val d: D = D@6f5d0190 // mutated d.c val res0: Int = 42
There are two invocations d.f but only one value is printed. (Scala 3 REPL prints both.)
d.f
Noticed at scala/scala3#15764 (comment) to great embarrassment and consternation.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproduction steps
Problem
There are two invocations
d.f
but only one value is printed. (Scala 3 REPL prints both.)Noticed at scala/scala3#15764 (comment) to great embarrassment and consternation.
The text was updated successfully, but these errors were encountered: