Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.5.2
-
None
-
None
Description
I have a method on Java interface
RelationshipDefinition source(String cardinality, String title);
And I want to create an extension method (as using @NamedVariant in Java sources is not supported)
@NamedVariant static RelationshipDefinition source(RelationshipDefinition definition @NamedDelegate TitleAndCardinality tac) { return definition.source(tac.cardinality, tac.title) }
I got an error when I try to use the method such as follows:
definition.source(cardinality: '1')
Attachments
Issue Links
- is duplicated by
-
GROOVY-10574 @NamedVariant generation does not work with extension methods
- Closed