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

Paul King closed GROOVY-8920.
-----------------------------

> Fails to infer parameter and return type of SAM on RHS
> ------------------------------------------------------
>
>                 Key: GROOVY-8920
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8920
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Daniel Sun
>            Assignee: Daniel Sun
>            Priority: Major
>             Fix For: 3.0.0-alpha-4
>
>
>  Currently:
> {code:java}
> If the parameter type and return type of lambda are not specified, STC does 
> not work.
> Function<Integer, Integer> f = (Integer e) -> (Integer) (e + 1)
> {code}
>  After fixed:
> {code:java}
> Function<Integer, Integer> f = e -> e + 1 // STC works
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to