Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-9640

REPL Interpretation problems with `+` & `-` variable names. Similar others fine.

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: Scala 2.10.5
    • Fix Version/s: None
    • Component/s: Repl / Interpreter
    • Labels:
      None
    • Environment:

      Ubuntu on c9. Using sbt quickConsole.

      Description

      example with + but - also breaks.

      scala> val `+` : Int = 0
      +: Int = 0
       
      scala> `+` * 6 
      <console>:1: error: ';' expected but integer literal found.
             `+` * 6 
                   ^
      scala> val `*` : Int = 0
      *: Int = 0
       
      scala> `*` * 6
      res1: Int = 0
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ssmeke Salomon Smeke
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: