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

Arithmetic characters held in dynamically trped variables doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.0-beta-3
    • 1.0-beta-4
    • class generator
    • None

    Description

      c = 'b'
      x = c - 1
      y = c - '\u0001'
      println "c = '${c}'"
      println "x = '${x}'"
      println "y = '${y}'"

      produces
      c = 'b'
      x = 'b'
      y = 'b'

      Attachments

        Activity

          People

            jstrachan James Strachan
            tug John Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: