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

Eric Milles updated GROOVY-11572:
---------------------------------
    Fix Version/s: 4.0.26

> STC: spread on non-iterable type causes compiler error
> ------------------------------------------------------
>
>                 Key: GROOVY-11572
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11572
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static Type Checker
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Major
>             Fix For: 4.0.26, 5.0.0-alpha-13
>
>
> Consider the following:
> {code:groovy}
> @groovy.transform.TypeChecked
> void test() {
>   def list = [0, *1]
>   m(*2)
> }
> def m(... args) {
> }
> {code}
> The two spread expressions result in NullPointerException in static type 
> checker.



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

Reply via email to