Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.5
-
None
Description
@groovy.transform.CompileStatic char m( int v ) { char c = (char)v c } println m( 65 )
Gives:
[Static type checking] - Inconvertible types: cannot cast int to char
Removing CompileStatic or just doing:
@groovy.transform.CompileStatic char m( int v ) { v } println m( 65 )
Works
Attachments
Issue Links
- is duplicated by
-
GROOVY-5843 CompileStatic can't cast int to char
- Closed