Error type with lambda
Answered
Hello,
I have a function that takes a BiFunction<Player, ItemStack, ItemStack> as a parameter. If I use inner anonymous class, Intellij advises me to use a lambda expression. But if I accept, I have errors where I use the parameters : for intellij, they are Object type and not Player and ItemStack.

How I can fix that ?
Note: this problem doesn't occur when I use Predicate<Player>.
Please sign in to leave a comment.
Please share a sample project/file to reproduce the issue: https://uploads.services.jetbrains.com/ .
Ok, here the files names :
Hello, please clarify, the method
is unresolved for me in both cases, while using anonymous class and lambda, is the behaviour the same for you? Thank you
No :
I've uploaded this new version of main (the name is the same :
Thank you for the details provided, please follow the issue created for your report at YouTrack:
https://youtrack.jetbrains.com/issue/IDEA-230029