James Daugherty created GROOVY-11509:
----------------------------------------
Summary: Ternary Operator Spacing Issue
Key: GROOVY-11509
URL: https://issues.apache.org/jira/browse/GROOVY-11509
Project: Groovy
Issue Type: Question
Components: Compiler
Affects Versions: 4.0.0
Reporter: James Daugherty
When converting the Grails project to groovy 4, we noticed a compile error for
the following code:
{code:java}
def tags = null;
tags = tags?[tags]:[] {code}
Adding a space after the question mark succeeds in groovy 4. Is this an
expected compilation error or should no spaces be allowed?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)