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

static typing issue: adding a string to an Integer

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.4
    • Fix Version/s: 1.6.1, 1.5.8, 1.7-beta-1
    • Component/s: None
    • Labels:
      None

      Description

      This should not compile:

      groovy> Integer i = 12
      groovy> i += " angry men"
      groovy> println i

      12 angry men

      Best regards,

      Peter

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                blackdrag Jochen Theodorou
                Reporter:
                pweemeeuw Peter Weemeeuw
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: