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

AstBuilderFromSpecificationTest.testElvisOperatorExpression(): DSL and expected AST incorrect

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.2.0-beta-2
    • ast builder
    • None
    • 1.9.0-beta-4-SNAPSHOT
    • 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.2
          1 kB
          Masato Nagai
        2. testElvisOperatorExpression.patch
          0.8 kB
          Masato Nagai

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: