paulk-asert commented on pull request #1359:
URL: https://github.com/apache/groovy/pull/1359#issuecomment-686930325


   The following script fails with a `VerifyError` with this PR merged:
   ```
   import java.util.function.Function
   @groovy.transform.CompileStatic
   class C<R extends Number> {
       def <V> V m(Function<C, V> f) { // R from C is confused with R->V from 
Function
           V result = f.apply(this)
           return result
       }
   }
   
   @groovy.transform.CompileStatic
   def method() {
       def ret = new C().m(new Function<C, String>() {
           @Override
           String apply(C that) {
               return 'foo'
           }
       })
       assert ret == 'foo'
   }
   
   method()
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to