You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IntelliJ incorrectly flags a method reference to a constructor that includes optional parameters (without providing all optional parameters) as an error, even though the code compiles fine.
publicclassFoo {
publicFoo(Stringtest, Stringbar="bar") { }
}
Function<String, Foo> fooFunction = test -> new Foo(test);
Function<String, Foo> fooFunction2 = Foo::new; // ERROR Bad return type in method reference: cannot convert void to test.Test.Foo
BiFunction<String, String, Foo> fooFunction3 = Foo::new; // OK when all parameters are provided
The text was updated successfully, but these errors were encountered:
EotT123
pushed a commit
to EotT123/manifold-test
that referenced
this issue
May 10, 2025
IntelliJ incorrectly flags a method reference to a constructor that includes optional parameters (without providing all optional parameters) as an error, even though the code compiles fine.
The text was updated successfully, but these errors were encountered: