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 2026/06/24 02:45:00 UTC
[jira] [Updated] (GROOVY-12100) provide Closure variants for AGM primitive each
[ https://issues.apache.org/jira/browse/GROOVY-12100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King updated GROOVY-12100:
-------------------------------
Description:
The AGM primitive each variants are Consumer based which works well with explicitly typed consumers but lose the type information when type checker.
This is because the distance to each(T, Closure) is less than to each(int[], IntConsumer) etc.
was:The AGM primitive each variants are Consumer based which works well with explicitly typed consumers but lose the type information because the distance to each(T, Closure) is less than to each(int[], IntConsumer) etc.
> provide Closure variants for AGM primitive each
> -----------------------------------------------
>
> Key: GROOVY-12100
> URL: https://issues.apache.org/jira/browse/GROOVY-12100
> Project: Groovy
> Issue Type: Improvement
> Reporter: Paul King
> Assignee: Paul King
> Priority: Major
> Fix For: 6.0.0-alpha-2
>
>
> The AGM primitive each variants are Consumer based which works well with explicitly typed consumers but lose the type information when type checker.
> This is because the distance to each(T, Closure) is less than to each(int[], IntConsumer) etc.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)