groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Sun (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GROOVY-8920) Fails to infer parameter and return type of SAM on RHS
Date Wed, 12 Dec 2018 07:56:00 GMT
Daniel Sun created GROOVY-8920:
----------------------------------

             Summary: 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


 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
{code}



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

Mime
View raw message