eric-milles commented on PR #1970: URL: https://github.com/apache/groovy/pull/1970#issuecomment-1769290243
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>". `inferDiamondType` should be walking from 'Map' to `MapLong` calling `parameterizeType` each time to fill in the type parameters. So, I would expect a fix in `inferDiamondType` not `adjustGenerics` if something is amiss. -- 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]
