paulk-asert opened a new pull request, #3160: URL: https://github.com/apache/groovy/pull/3160
…eal setter Under static compilation, an increment or decrement of a property whose getter or setter is an extension method failed with "Access to ... is forbidden", because code generation reads and writes the operand as a property. Rewrite it into a getter call, next() or previous(), and a setter call, evaluating the receiver once; a prefix expression yields the new value and a postfix expression the old one. A bare name is left to code generation, which already resolves one in a closure through its delegate. Compound assignment to such a property now also accepts a real setter with an extension getter. With a real setter only the getter the type checker resolved is used, so a class's own getter is not replaced by a same-named extension method. -- 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]
