[
https://issues.apache.org/jira/browse/GROOVY-6369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Sun reassigned GROOVY-6369:
----------------------------------
Fix Version/s: 7.0.0-alpha-1
Assignee: Daniel Sun
> Groovy should not allow "new" on generic type
> ---------------------------------------------
>
> Key: GROOVY-6369
> URL: https://issues.apache.org/jira/browse/GROOVY-6369
> Project: Groovy
> Issue Type: Bug
> Components: Compiler
> Reporter: Cédric Champeau
> Assignee: Daniel Sun
> Priority: Major
> Fix For: 7.0.0-alpha-1
>
>
> The following code compiles fine:
> {code}
> public <T> T nouveau() { new T() }
> {code}
> but instiantiating a generic type should not be allowed.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)