[
https://issues.apache.org/jira/browse/GROOVY-10439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17470076#comment-17470076
]
Eric Milles commented on GROOVY-10439:
--------------------------------------
I decided it best to skip adding the conflicting interface in this case, which
is current behavior. However, this more subtle case will generate an error
thanks to GROOVY-5106:
{code:groovy}
class C extends ArrayList<String> {
@Delegate Set<Number> numbers
}
{code}
> No error/warning for @Delegate introducing conflicting interface generics
> -------------------------------------------------------------------------
>
> Key: GROOVY-10439
> URL: https://issues.apache.org/jira/browse/GROOVY-10439
> Project: Groovy
> Issue Type: Bug
> Components: Compiler
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Minor
>
> Consider the following:
> {code:groovy}
> class C implements List<String> {
> @Delegate List<Number> numbers
> }
> {code}
> C implements List<String> and List<Number> but there is no compiler error or
> warning.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)