You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2020/12/10 17:18:44 UTC

[GitHub] [groovy] eric-milles opened a new pull request #1442: GROOVY-9852: closure/lambda match @FunctionalInterface vs Object methods

eric-milles opened a new pull request #1442:
URL: https://github.com/apache/groovy/pull/1442


   https://issues.apache.org/jira/browse/GROOVY-9852
   
   ```
   given:
     def m(AutoCloseable ac) // functional interface
     def m(InputStream is) // SAM type
     def m(Object o)
   expect:
     "m { }" should choose the AutoCloseable method
   
   given:
     def m(InputStream x)
     def m(Object o)
   expect:
     "m { }" should choose the Object method
   
   given:
     def m(AutoCloseable x)
     def m(GroovyObject o)
   expect:
     "m { }" should choose the GroovyObject 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:
users@infra.apache.org



[GitHub] [groovy] danielsun1106 commented on pull request #1442: GROOVY-9852: closure/lambda match @FunctionalInterface vs Object methods

Posted by GitBox <gi...@apache.org>.
danielsun1106 commented on pull request #1442:
URL: https://github.com/apache/groovy/pull/1442#issuecomment-743958568


   Merged. Thanks!


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [groovy] danielsun1106 commented on pull request #1442: GROOVY-9852: closure/lambda match @FunctionalInterface vs Object methods

Posted by GitBox <gi...@apache.org>.
danielsun1106 commented on pull request #1442:
URL: https://github.com/apache/groovy/pull/1442#issuecomment-742881656


   LGTM


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [groovy] danielsun1106 merged pull request #1442: GROOVY-9852: closure/lambda match @FunctionalInterface vs Object methods

Posted by GitBox <gi...@apache.org>.
danielsun1106 merged pull request #1442:
URL: https://github.com/apache/groovy/pull/1442


   


----------------------------------------------------------------
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:
users@infra.apache.org