groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sun <realblue...@hotmail.com>
Subject Re: Safe index for Groovy 3
Date Tue, 08 Nov 2016 16:13:26 GMT
groovy-all-2.5.0-SNAPSHOT jar file used by groovy-parser is a bit outdated,
the following usual code can not be executed too(but it can be executed by
2.4.7...), so the static complication test cases will be added later :)

@CompileStatic
int cs() {
    List a = [1, 2, 3]
    return a[0];
}
cs();


Cheers,
Daniel.Sun



--
View this message in context: http://groovy.329449.n5.nabble.com/Safe-index-for-Groovy-3-tp5736558p5736560.html
Sent from the Groovy Dev mailing list archive at Nabble.com.

Mime
View raw message