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

Boolean assignment optimized by compiler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6
    • 2.0-rc-3
    • Compiler
    • None
    • groovyConsole 1.6.0

    Description

      I think the attached script should pass. Specifically this line:

      X = [Y, Z]

      should go through setProperty("X", [null, null]) but instead it comes in as setProperty("X", true)

      I am using this feature for a DSL to define the rules for a binary decision tree.

      Added to the compiler because of this email on the list:
      http://tinyurl.com/cfuyah

      Attachments

        1. boolean _assignment.groovy
          0.4 kB
          zak jacobson

        Activity

          People

            blackdrag Jochen Theodorou
            zoosnack zak jacobson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: