[ 
https://issues.apache.org/jira/browse/GROOVY-9814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christopher Smith updated GROOVY-9814:
--------------------------------------
    Attachment: Groovy9814.groovy

> Method reference doesn't accept subtypes of argument
> ----------------------------------------------------
>
>                 Key: GROOVY-9814
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9814
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 3.0.6
>            Reporter: Christopher Smith
>            Priority: Major
>         Attachments: Groovy9814.groovy
>
>
> When using a method reference such as {{HasId::getId}}, the compiler 
> implements the request by generating a {{MethodClosure}}. However, the 
> closure accepts only the exact type of the reference, not subtypes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to