[ 
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.x)
                   4.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
>            Priority: Major
>             Fix For: 4.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
(v8.3.4#803005)

Reply via email to