yuhengfdada commented on PR #1970: URL: https://github.com/apache/groovy/pull/1970#issuecomment-1771993296
> Generics is a very tricky area of the compiler. The diamond inference may assume that the target type's generics exactly correspond to the constructor type's generics. I don't think the `>` check is sufficient. You may have a type like "class C<V,K> implements Map<K,V>". Can you share a bit more on `You may have a type like "class C<V,K> implements Map<K,V>`? This PR is about when subclasses have less type parameters. Are you suggesting the compiler might wrongly inference class C as <K,V> instead of <V, K>? -- 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]
