Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
In Groovy, you can add carriage returns before the dot operator. For instance:
doSomething() .somethingElse() .collect { ... }
But with the safe navigation operator or the spread operator, it does not work.
doSomething()
?.somethingElse() // does not compile, "unexpected token ?."
?.collect { ... }
doSomething()
*.somethingElse() // does not compile, "unexpected token *."
.collect { ... }