[ 
https://issues.apache.org/jira/browse/GROOVY-10651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Milles updated GROOVY-10651:
---------------------------------
    Summary: STC: closure parameter type inference for raw type that is 
iterable over type parameter  (was: STC: closure parameter type inference for 
iterable type)

> 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
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Major
>
> Consider the following:
> {code:java}
> abstract class TreeNode<T extends TreeNode<?>> implements Iterable<T> {
>   @Override
>   Iterator<T> 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.7#820007)

Reply via email to