[ 
https://issues.apache.org/jira/browse/GROOVY-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18153995#comment-18153995
 ] 

ASF GitHub Bot commented on GROOVY-2994:
----------------------------------------

daniellansun closed pull request #3342: GROOVY-2994: make String and GString 
commute under plus()
URL: https://github.com/apache/groovy/pull/3342




> 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
>            Assignee: Daniel Sun
>            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
(v10.3.26#10030026)

Reply via email to