Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The ticket is to provide some suggestion to tweak the fix of GROOVY-10034 ( https://github.com/apache/groovy/pull/1556 ):
It seems that we could make the check simpler, we do not add extra checks but tweak the existing check.
Current
if (targetType == top) return;
Proposed
https://github.com/apache/groovy/pull/1561
if (ClassNodeUtils.isCompatibleWith(top, targetType)) return;
Attachments
Issue Links
- is a clone of
-
GROOVY-10034 Compiler writes extra cast for Type[] to Object[]
- Closed