Skip to content

REPL shows implicits #9826

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

Closed
scabug opened this issue Jun 22, 2016 · 2 comments
Closed

REPL shows implicits #9826

scabug opened this issue Jun 22, 2016 · 2 comments

Comments

@scabug
Copy link

scabug commented Jun 22, 2016

A REPL needs a better story for implicit application than -Xprint:typer.

There's coloring and underlining.

Another idea is an explanatory comment on the input line:

scala> q + 1         // scala.this.Predef.any2stringadd[scala.collection.immutable.Queue[Int]]($line11.$read.q).+(1)

Shorter type names would help that solution.

Inspired by a representative question

@scabug
Copy link
Author

scabug commented Jun 22, 2016

Imported From: https://issues.scala-lang.org/browse/SI-9826?orig=1
Reporter: @som-snytt
Affected Versions: 2.12.0-M4

@som-snytt
Copy link

That is called -Vimplicit-conversions.

scala> q + 42
       ^
       applied implicit conversion from q.type to ?{def + : ?} = final implicit def any2stringadd[A](self: A): any2stringadd[A]
           ^
       error: type mismatch;
        found   : Int(42)
        required: String

@som-snytt som-snytt closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2025
@SethTisue SethTisue removed this from the Backlog milestone Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants