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
Consider the following:
import java.util.function.Function @FunctionalInterface interface F extends Function<Number,String> { } class C { def m(F func) { } void test() { m { n -> n.intValue().toString() } } }
SAM-type F does not directly declare its abstract method apply. Inferred type of "n" parameter is type parameter T when Number is expected.
F
apply
T
Number
The text was updated successfully, but these errors were encountered:
Fix for #1368: handle indirect SAM declaration
56df724
Sorry, something went wrong.
7b490a7
eric-milles
No branches or pull requests
Consider the following:
SAM-type
F
does not directly declare its abstract methodapply
. Inferred type of "n" parameter is type parameterT
whenNumber
is expected.The text was updated successfully, but these errors were encountered: