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

List + List => Wrong Result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0-JSR-2
    • 1.0-JSR-3
    • None
    • None

    Description

      Addition of two lists does not work correctly,

      For example:

      x = [1,2]
      y = [3,4]
      z = x + y
      print z // [1,2,[3,4]]

      The value of z is not [1,2,3,4], but [1,2,[3,4]].

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            huxili Huxi LI
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: