You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2025/07/08 15:35:00 UTC

[jira] [Resolved] (GROOVY-11659) STC: assign range to primitive array

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

Eric Milles resolved GROOVY-11659.
----------------------------------
    Fix Version/s: 5.0.0-beta-2
       Resolution: Fixed

Please open a separate work item for widening.  I don't know the rules for that in the array space.

> STC: assign range to primitive array
> ------------------------------------
>
>                 Key: GROOVY-11659
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11659
>             Project: Groovy
>          Issue Type: Improvement
>          Components: Static Type Checker
>            Reporter: Paul King
>            Assignee: Eric Milles
>            Priority: Minor
>             Fix For: 5.0.0-beta-2
>
>
> We currently allow this with type checking:
> {code:groovy}
> Integer[] nums = 1..10
> {code}
> But not these:
> {code:groovy}
> int[] nums = 1..10
> long[] bigNums = 1..10
> {code}



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