Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.0
-
None
Description
It would be interesting to get @Delegate working with @DelegatesTo e.g.:
@CompileStatic class SomeBuilder{ @Delegate AnotherBuilder @Delegate AnotherBuilder2 @Delegate AnotherBuilder3 static Some build (@DelegatesTo(SomeBuilder) Closure c) { c() //... } } class AnotherBuilder{ String prop } SomeBuilder.create{ prop = 'test' //from AnotherBuilder }