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

Printing the result of the ternery operator ? : is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.0-beta-3
    • 1.0-beta-5
    • parser
    • None

    Description

      a = 1
      b = 2
      System.out << (a > b) ? a : b

      prints false

      It should either print 2 or report a syntax error

      My feeling is that it should print 2

      Attachments

        Activity

          People

            Unassigned Unassigned
            tug John Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: