You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2020/07/18 21:38:00 UTC
[jira] [Updated] (GROOVY-6977) Method type parameter resolved to
class with anonymous inner class
[ https://issues.apache.org/jira/browse/GROOVY-6977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King updated GROOVY-6977:
------------------------------
Fix Version/s: 2.5.0
> Method type parameter resolved to class with anonymous inner class
> ------------------------------------------------------------------
>
> Key: GROOVY-6977
> URL: https://issues.apache.org/jira/browse/GROOVY-6977
> Project: Groovy
> Issue Type: Bug
> Reporter: Julien Viet
> Priority: Major
> Fix For: 2.5.0
>
>
> compiling
> {code}
> class A {
> public <R> void bar() {
> List<R> a = new ArrayList<R>() { };
> }
> }
> {code}
> fails with "Groovy:unable to resolve class R"
--
This message was sent by Atlassian Jira
(v8.3.4#803005)