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

Error parsing simple expression in a conditional.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • 1.1-beta-2
    • None
    • None

    Description

      Cannot parse:

      if (a = false) println "xx"

      but can parse:

      if ((a = false)) println "xx"

      Of course this is a useless statement, but it also fails with any boolean-values expression substituted for "false".

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            bobjalex Bob Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: