Christopher Smith created GROOVY-12548:
------------------------------------------

             Summary: 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: 6.0.0, 5.1.3
            Reporter: Christopher Smith
         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)

Reply via email to