[
https://issues.apache.org/jira/browse/GROOVY-12548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Sun reassigned GROOVY-12548:
-----------------------------------
Fix Version/s: 7.0.0-alpha-1
Assignee: Daniel Sun
> STC regression: closure parameter type not inferred from receiver for
> extension-method SAM parameter
> ----------------------------------------------------------------------------------------------------
>
> Key: GROOVY-12548
> URL: https://issues.apache.org/jira/browse/GROOVY-12548
> Project: Groovy
> Issue Type: Bug
> Components: Compiler, Static compilation
> Affects Versions: 5.1.3, 6.0.0
> Reporter: Christopher Smith
> Assignee: Daniel Sun
> Priority: Minor
> Fix For: 7.0.0-alpha-1
>
> Attachments: ExtModule.java, Holder.java, mcve04.zip,
> mcve04_extension_method_closure_param.groovy
>
>
> When the {{self}} of an extension method is generic and a closure is provided
> as a second parameter to the extension method, 5.x (at least as far back as
> alpha-5) fails to use the generic type at the call site and instead uses
> {{Object}} for the closure's {{it}}.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)