Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0.5
-
None
Description
This code
@groovy.transform.CompileStatic def f() { (65..90).collect { int it -> (char)it } } f()
Throws
[Static type checking] - Inconvertible types: cannot cast int to char
Remove the CompileStatic annotation, and it works again...
Attachments
Issue Links
- duplicates
-
GROOVY-5798 CompileStatic cannot cast int to char
- Closed