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 2018/08/26 03:18:00 UTC
[jira] [Closed] (GROOVY-4360) A method level generic type is not
resolved inside AIC
[ https://issues.apache.org/jira/browse/GROOVY-4360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-4360.
-----------------------------
Resolution: Cannot Reproduce
Assignee: Paul King
This looks like it was fixed some versions back. Please re-open if you still have problems with the latest version of Groovy.
> A method level generic type is not resolved inside AIC
> ------------------------------------------------------
>
> Key: GROOVY-4360
> URL: https://issues.apache.org/jira/browse/GROOVY-4360
> Project: Groovy
> Issue Type: Bug
> Components: class generator
> Affects Versions: 1.8-beta-1, 2.4.0-beta-3
> Reporter: Roshan Dawrani
> Assignee: Paul King
> Priority: Major
>
> The code below fails saying {{unable to resolve class T}}, when it should compile fine and have the same semantics as Java in this case.
> {code}
> class A{
> def <T> void foo() {
> def dummy = new Object() {
> def bar(T a) { }
> }
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)