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

static typing issue: adding a string to an Integer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.4
    • 1.6.1, 1.5.8, 1.7-beta-1
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: