Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.0-rc-3
-
None
Description
class Source { Object getValue() { '32' } } @groovy.transform.CompileStatic int m(Source src) { return Integer.parseInt((String) src.getValue()) } null
Fails with
[Static type checking] - Inconvertible types: cannot cast int to java.lang.String
Git bisect shows it is related to change for GROOVY-7753 (commit 9d7c1bf1b07d43c1efd16c9252b).
Attachments
Issue Links
- relates to
-
GROOVY-8595 Expected parameter of type XXX but got YYY static compile error
- Closed
- links to