On 2020-05-07 13:43 , Daniel.Sun wrote:
```
// https://issues.apache.org/jira/browse/GROOVY-9522
def a() { null }
def b() { '' }
  a()?[b(), a()].join(','):b()  // statement with ambiguities
```
The above statement  with ambiguities can be parsed into:
1) safe indexing expression, `a()?[[b(), a()]].join([',': b()])`
2) ternary expression, `a() ? ([b(), a()].join(',')) : b()`


I'm not familiar with the new syntax, and this may be beside the point, but how does the .join(','):b() part get parsed into .join([',': b()])?

Cheers,
11011011

Reply via email to