Skip to content

REPL emits ires cruft #11992

Closed as not planned
Closed as not planned
@som-snytt

Description

@som-snytt

reproduction steps

$ scala -nobootcp -Vprint:typer
Welcome to Scala 2.13.2 (OpenJDK 64-Bit Server VM, Java 11.0.7).
scala> import concurrent._, ExecutionContext.Implicits._ ; Future(42)
[[syntax trees at end of                     typer]] // <console>
package $line3 { // OK
import concurrent._
import ExecutionContext.Implicits._
val res0: scala.concurrent.Future[Int] = Future(<not completed>)
[[syntax trees at end of                     typer]] // <synthetic>
package $line6 { // cruft
[[syntax trees at end of                     typer]] // <synthetic>
package $line5 { // it goes on with $line4, $line7, $line8

problem

I don't know how the extra ires results, besides the $line3 I entered, are useful or intended to be used. Also, the output looks broken.

Therefore, I didn't expect them to be generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions