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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment