groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sun <>
Subject Array initializer of Java style for Groovy 3
Date Tue, 24 Jan 2017 12:12:11 GMT
Hi all,

      The new parser Parrot support array initializer of Java style, e.g.
new int[] {1, 2, 3}, new int[][]{new int[]{1,}, new int[]
{, 4}}, new String[] {'hello', 'world'}

      More examples can be found at

       If you want to give it a try, follow the steps to launch groovy
console to run your code:

$ git clone
$ cd groovy-parser
$ ./gradlew groovyConsole


View this message in context:
Sent from the Groovy Dev mailing list archive at

View raw message