You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2017/05/02 02:15:04 UTC

[jira] [Updated] (GROOVY-2994) String and GString do not commute under plus()

     [ https://issues.apache.org/jira/browse/GROOVY-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King updated GROOVY-2994:
------------------------------
    Fix Version/s:     (was: 3.0)
                   3.x

> String and GString do not commute under plus()
> ----------------------------------------------
>
>                 Key: GROOVY-2994
>                 URL: https://issues.apache.org/jira/browse/GROOVY-2994
>             Project: Groovy
>          Issue Type: Bug
>          Components: groovy-runtime
>    Affects Versions: 1.5.6
>            Reporter: Alexander Veit
>             Fix For: 3.x
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)