Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
2.4.5, 2.4.6
-
None
Description
@groovy.transform.CompileStatic def bug() { [1,2,3].collect{it<<2} }
The code above works correctly with CompileDynamic, but CompileStatic will produce the following error:
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 ...
The same with >> or >>>.
Attachments
Issue Links
- duplicates
-
GROOVY-7542 CompileStatic class generation bug "register with message: rightShiftUnsigned and arguments X"
- Closed