You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Cédric Champeau (JIRA)" <ji...@apache.org> on 2015/10/07 21:24:27 UTC
[jira] [Resolved] (GROOVY-7598) type checking with generics
[ https://issues.apache.org/jira/browse/GROOVY-7598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cédric Champeau resolved GROOVY-7598.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.4.6
> 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
> Fix For: 2.4.6
>
>
> 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)