groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel.Sun" <sun...@apache.org>
Subject Re: Groovy 3.0: Multiline list/map arguments
Date Fri, 06 Apr 2018 16:25:39 GMT
Hi mg,

      `foo [....]` is ambiguous, parser can parse it as index expression or
parse it as method invocation without parentheses, the former is applied to
solve the ambiguity. 

       Similarly, `println [1, 2, 3]` will fail too ;-)

Cheers,
Daniel.Sun




--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html

Mime
View raw message