groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel.Sun" <>
Subject Method reference for Groovy 3
Date Tue, 25 Oct 2016 16:25:24 GMT
Hi all,

       The brand new parser can support method reference and constructor
reference now. The implementation of backend is based on the discussion of 
GROOVY-7772 <>  .

        Here are some example code of method reference for Groovy:

assert ['1', '2', '3'] == [1, 2,
assert ['A', 'B', 'C'] == ['a', 'b',
assert [new String[1], new String[2], new String[3]] == [1, 2,

        ( Complete example code can be found at:

         At last, I want to thank *Jochen Theodorou* who explained the whole
discussion of GROOVY-7772 in detail for me.

*PS:* if you want to give it a try, follow the step:
$ git clone
$ cd groovy-parser
$ ./gradlew groovyConsole


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

View raw message