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

AstBuilderFromSpecificationTest.testElvisOperatorExpression(): DSL and expected AST incorrect

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0-beta-2
    • Component/s: ast builder
    • Labels:
      None
    • Environment:
      1.9.0-beta-4-SNAPSHOT
    • Flags:
      Patch

      Description

      AstBuilderFromSpecificationTest.testElvisOperatorExpression() fails because it generates AST of

      name ?: 'Anonymous'

      but it sets AST of the following as the expected result:

      ((boolean) name)?: 'Anonymous'

        Attachments

        1. testElvisOperatorExpression.patch
          0.8 kB
          Masato Nagai
        2. testElvisOperatorExpression.patch.2
          1 kB
          Masato Nagai

          Activity

            People

            • Assignee:
              pschumacher Pascal Schumacher
              Reporter:
              nagai_masato Masato Nagai
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: