[ https://issues.apache.org/jira/browse/GROOVY-7598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
JAMIE ECHLIN updated GROOVY-7598: --------------------------------- Affects Version/s: 2.4.4 > type checking with generics > --------------------------- > > Key: GROOVY-7598 > URL: https://issues.apache.org/jira/browse/GROOVY-7598 > Project: Groovy > Issue Type: Bug > Components: Static Type Checker > Affects Versions: 2.4.4 > Reporter: JAMIE ECHLIN > Assignee: Cédric Champeau > > The following compiles without error... I don't think it should: > {code} > import groovy.transform.TypeChecked > @TypeChecked > class C extends Script { > @Override > List<String> run() { > [11, 12] > } > } > {code} > What I would expect to see is: > Cannot return ArrayList<Integer> from method returning List<String> -- This message was sent by Atlassian JIRA (v6.3.4#6332)