[
https://issues.apache.org/jira/browse/GROOVY-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles updated GROOVY-2994:
--------------------------------
Fix Version/s: (was: 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
>
> 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.20.1#820001)