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

String and GString do not commute under plus()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 1.5.6
    • None
    • groovy-runtime
    • None

    Description

      assert "${1}" + "2" instanceof GString
      assert "1" + "${2}" instanceof String

      As far as I can see plus() should be commutative throughout the GDK. At least it should be commutative for String and GString.

      Attachments

        Activity

          People

            Unassigned Unassigned
            veita Alexander Veit
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: