You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2020/07/18 16:19:00 UTC
[jira] [Resolved] (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 ]
Eric Milles resolved GROOVY-6977.
---------------------------------
Resolution: Fixed
> 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
>
> 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)