We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
There seems to be an error with a particular use of lambda expressions :
public interface TestLambda{ default <T extends Ben & Jerry> Optional<T> bar () { return (Optional<T>) foo().stream().filter(elt -> elt.benMethod(Ben.class)).findFirst(); } default <T extends Ben & Jerry> List<T> foo () { return Collections.emptyList(); } }
benMethod being a method declared in Ben interface. It becomes :
benMethod
Ben
public interface TestLambda { default <T extends Ben & Jerry> Optional<T> bar() { return ((Optional<T>) (foo().stream().filter((Ben & Jerry elt) -> elt.benMethod(Ben.class)).findFirst())); } default <T extends Ben & Jerry> List<T> foo() { return Collections.emptyList(); } }
(Notice the (Ben & Jerry elt) -> that doesn't compile)
(Ben & Jerry elt) ->
Thank you for your support :)
The text was updated successfully, but these errors were encountered:
Hi @lodart , Thanks a lot for the bug report. Would you make a pull request with a failing test out of it?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hi,
There seems to be an error with a particular use of lambda expressions :
benMethod
being a method declared inBen
interface.It becomes :
(Notice the
(Ben & Jerry elt) ->
that doesn't compile)Thank you for your support :)
The text was updated successfully, but these errors were encountered: