Tommy Svensson created GROOVY-8036:
--------------------------------------

             Summary: Compiler throws NPE
                 Key: GROOVY-8036
                 URL: https://issues.apache.org/jira/browse/GROOVY-8036
             Project: Groovy
          Issue Type: Bug
          Components: Compiler
    Affects Versions: 2.4.7
            Reporter: Tommy Svensson


With code like this:

int a = 5
[1..a].each { ->
   println "qwerty"
}

the compiler throws an NPE. OK, this is incorrect code since it is missing a 
value before '->', but this should preferably produce an error message and not 
an NPE :-)





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to