groovy-notifications mailing list archives

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

    [ https://issues.apache.org/jira/browse/GROOVY-8920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16718597#comment-16718597
] 

ASF GitHub Bot commented on GROOVY-8920:
----------------------------------------

GitHub user danielsun1106 opened a pull request:

    https://github.com/apache/groovy/pull/838

    GROOVY-8920: Fails to infer parameter and return type of SAM on RHS

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/danielsun1106/groovy refine-type-inference-assignment

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/groovy/pull/838.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #838
    
----
commit 9e601ae2ec09bb95b3c1ebe04c0e99c50de620e7
Author: danielsun1106 <realbluesun@...>
Date:   2018-12-12T07:56:42Z

    GROOVY-8920: Fails to infer parameter and return type of SAM on RHS

----


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