You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Fabiano Biagini (JIRA)" <ji...@apache.org> on 2016/03/12 23:51:33 UTC
[jira] [Created] (GROOVY-7787) leftShift in simple closure won't
CompileStatic
Fabiano Biagini created GROOVY-7787:
---------------------------------------
Summary: 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.6, 2.4.5
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)