Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: Scala 2.11.6
    • Fix Version/s: Scala 2.11.7
    • Component/s: Repl / Interpreter
    • Labels:
      None

      Description

      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 }
                                                      ^
      

        Attachments

          Activity

            People

            • Assignee:
              apm A. P. Marki
              Reporter:
              apm A. P. Marki
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: