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

Syntax problem when multiply negative numbers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.1-rc-3
    • syntax
    • None
    • Ubuntu Linux 6.0.6, Sun JDK 1.5, Groovy 1.0-jsr-06

    Description

      Looks like Groovy do not handle properly the syntax when multiply negative numbers.
      Example:

      int i = result * -1

      this code does not "compile", the "compiler" says to remove the minus "-" signal.

      But it can be resolved:

      int i = result * (-1)

      Attachments

        Activity

          People

            aalmiray Andres Almiray
            razenha Rubem Azenha
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: