You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (JIRA)" <ji...@apache.org> on 2018/12/12 07:56:00 UTC
[jira] [Created] (GROOVY-8920) Fails to infer parameter and return
type of SAM on RHS
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)