paulk-asert opened a new pull request, #3357: URL: https://github.com/apache/groovy/pull/3357
…d await needs its operand on the same line A method call, property or index after await(x) was taken into the operand, so await(task).toString() awaited task.toString(), although await(task) + 1 added to the awaited value. The parenthesised form is now a primary, so a following path element applies to the awaited value. Without parentheses await still takes the whole expression. The grammar also allowed newlines between await and its operand, so a variable, field or parameter named await at the end of a line took the next line as its operand. await must now be followed by its operand, or by (, on the same line. async may still have its closure on the next line. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
