[ 
https://issues.apache.org/jira/browse/GROOVY-10651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17553685#comment-17553685
 ] 

Eric Milles edited comment on GROOVY-10651 at 7/15/22 4:05 PM:
---------------------------------------------------------------

{-}[https://github.com/apache/groovy/commit/d356b9d91275fa50f7698ea4db552d2bce5f0e96{-}
https://github.com/apache/groovy/commit/9e4f1d267604ce0e3a2e22e92f90a4a704b59b54


was (Author: emilles):
https://github.com/apache/groovy/commit/d356b9d91275fa50f7698ea4db552d2bce5f0e96

> STC: closure parameter type inference for raw type that is iterable over type 
> parameter
> ---------------------------------------------------------------------------------------
>
>                 Key: GROOVY-10651
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10651
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static Type Checker
>    Affects Versions: 2.5.17, 3.0.11, 4.0.3
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Major
>             Fix For: 5.0.0-alpha-1, 4.0.4
>
>
> Consider the following:
> {code:java}
> abstract class TreeNode<TN extends TreeNode<?>> implements Iterable<TN> {
>   @Override
>   Iterator<TN> iterator() {
>   }
> }
> {code}
> {code:groovy}
> void proc(TreeNode node) {
>   node.eachWithIndex { child, index ->
>     proc(child) // Cannot find matching method #proc(java.lang.Object)
>   }
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to