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