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

Shil Sinha commented on GROOVY-7787:
------------------------------------

This looks like a duplicate of 
https://issues.apache.org/jira/browse/GROOVY-7542, which only mentioned the 
rightShiftUnsigned case. There's currently an open PR for that issue, though 
I'm not sure if it's being worked on at the moment..

> leftShift in simple closure won't CompileStatic
> -----------------------------------------------
>
>                 Key: GROOVY-7787
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7787
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static compilation
>    Affects Versions: 2.4.5, 2.4.6
>            Reporter: Fabiano Biagini
>            Priority: Minor
>
> {noformat}
> @groovy.transform.CompileStatic
> def bug()
> {
>     [1,2,3].collect{it<<2}
> }
> {noformat}
> The code above works correctly with CompileDynamic, but CompileStatic will 
> produce the following error:
> {noformat}
> BUG! exception in phase 'class generation' in source unit 'ConsoleScript1' At 
> line 4 column 21
> On receiver: it with message: leftShift and arguments: 2
> This method should not have been called. Please try ...
> {noformat}
> The same with >> or >>>.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to