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 compensates for prompt #9206

Closed
scabug opened this Issue Mar 7, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@scabug
Copy link

scabug commented Mar 7, 2015

A little thing, but REPL doesn't always succeed in aligning error output with input.

scala> val i: Int = "foo"
<console>:7: error: type mismatch;
 found   : String("foo")
 required: Int
       val i: Int = "foo"
                    ^

scala> :pa
// Entering paste mode (ctrl-D to finish)

val i: Int = "foo"

// Exiting paste mode, now interpreting.

<console>:7: error: type mismatch;
 found   : String("foo")
 required: Int
       val i: Int = "foo"
                    ^

scala> { val j = 42 ; val i: Int = "foo" + j }
<console>:8: error: type mismatch;
 found   : String
 required: Int
              { val j = 42 ; val i: Int = "foo" + j }
                                                ^
@scabug

This comment has been minimized.

Copy link
Author

scabug commented Mar 7, 2015

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

@scabug scabug closed this Jun 22, 2015

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Jul 12, 2015

@scabug scabug added this to the 2.11.7 milestone Apr 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment