Github user shils commented on a diff in the pull request:

    https://github.com/apache/incubator-groovy/pull/187#discussion_r44695586
  
    --- Diff: 
src/test/org/codehaus/groovy/transform/TupleConstructorTransformTest.groovy ---
    @@ -131,10 +131,37 @@ class TupleConstructorTransformTest extends 
GroovyShellTestCase {
     
                 assert new Cat("Felix").toString() == 'Cat(name:Felix)'
                 assert new Cat("Felix", 42).toString() == 'Cat(name:Felix, 
id:42)'
    -            //assert new Cat("Felix", 42, 3.5d).toString() == 
'Cat(age:3.5, name:Felix, id:42)'
    +            assert new Cat("Felix", 42, 3.5d).toString() == 'Cat(age:3.5, 
name:Felix, id:42)'
                 assert new Cat(3.5d).toString() == 'Cat(age:3.5)'
                 assert new Cat().toString() == 'Cat()'
             '''
         }
     
    +    void testMultipleUsages_groovy7672() {
    +        assertScript '''
    +            import groovy.transform.*
    +            import java.awt.Color
    +
    +            class Named {
    +                String name
    +            }
    +
    +            @ToString(includeSuperProperties=true, ignoreNulls=true, 
includeNames=true, includeFields=true)
    +            @TupleConstructor(force=true, defaults=false)
    +            @TupleConstructor(force=true, defaults=false, 
includeFields=true)
    --- End diff --
    
    I think it would be helpful to include a multiple usage example like this 
in the documentation.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to