[
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)