qownz opened a new pull request, #3295:
URL: https://github.com/apache/groovy/pull/3295

   Fixes [GROOVY-10498](https://issues.apache.org/jira/browse/GROOVY-10498).
   
   The generated `Map` variant re-applied the default of a positional parameter 
with the elvis operator, so an explicitly supplied `0`, `0.0`, `false` or `""` 
was replaced by the default. The argument is now passed through; a default 
applies only when the argument is omitted, as for named arguments 
(GROOVY-10497).
   
   Regression test: 
`NamedVariantTransformTest.testFalsyPositionalArgumentOverridesDefaultValue`, 
which fails on master with `Color(r:1, g:2, b:3) 4.5`. `:test --tests 
'org.codehaus.groovy.transform.*'` is green (1334 passed).
   


-- 
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]

Reply via email to