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)