You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2019/01/16 12:09:02 UTC
[jira] [Closed] (GROOVY-8920) Fails to infer parameter and return
type of SAM on RHS
[ 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)