Github user jwagenleitner commented on a diff in the pull request:

    https://github.com/apache/groovy/pull/253#discussion_r52127643
  
    --- Diff: src/test/groovy/transform/stc/GenericsSTCTest.groovy ---
    @@ -1800,6 +1800,19 @@ assert result == 'ok'
     '''
         }
     
    +    // GROOVY-7742
    +    void testMethodParamWithDifferentPlaceholderForTypeArgument() {
    +        // We use <T> here while List uses <E>
    --- End diff --
    
    Looks like when it resolves the placeholders it adds T based on DGM `static 
<T> T first(List<T> self)` since it uses `T` as placeholder.  The real code 
that produced this error used `collect` which also uses `T`.  Changing the code 
to use `return classes.get(0)` fixes it.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to