Skip to content
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

REPL does not report all values #12626

Open
som-snytt opened this issue Jul 27, 2022 · 0 comments
Open

REPL does not report all values #12626

som-snytt opened this issue Jul 27, 2022 · 0 comments
Labels
Milestone

Comments

@som-snytt
Copy link

Reproduction steps

  ~ 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

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.

@SethTisue SethTisue added the repl label Aug 25, 2022
@SethTisue SethTisue added this to the Backlog milestone Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants