[
https://issues.apache.org/jira/browse/GROOVY-11509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles updated GROOVY-11509:
---------------------------------
Component/s: parser-antlr4
(was: Compiler)
> Ternary Operator Spacing Issue
> ------------------------------
>
> Key: GROOVY-11509
> URL: https://issues.apache.org/jira/browse/GROOVY-11509
> Project: Groovy
> Issue Type: Question
> Components: parser-antlr4
> Affects Versions: 4.0.0
> Reporter: James Daugherty
> Priority: Trivial
>
> 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)