Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.4
-
None
Description
The following compiles without error... I don't think it should:
import groovy.transform.TypeChecked @TypeChecked class C extends Script { @Override List<String> run() { [11, 12] } }
What I would expect to see is:
Cannot return ArrayList<Integer> from method returning List<String>
Attachments
Issue Links
- relates to
-
GROOVY-7763 Various problems with type inference in Groovy 2.4.6
- Closed
-
GROOVY-7753 regression of return type from ternary operator
- Closed