Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1267

MultipleCompilationErrorsException trying to run multiply by a negative with start and minus operator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-5
    • 1.0-RC-1
    • parser-antlr2
    • None

    Description

      The first line below compiles fine but the second one doesn't.

      println -1 * 1
      println 1 * -1

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, a.groovy: 2: unexpected token: - @ line 2, column 13
      .
      println 1 * -1

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            jshickey Scott Hickey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: