mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
[java-highlighting] Most of method-reference problems migrated
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: 03528950826974c1875e89868dc335c88c2e8149
This commit is contained in:
committed by
intellij-monorepo-bot
parent
17651f8c19
commit
577de68f8a
@@ -4,7 +4,7 @@ import java.util.function.Function;
|
||||
|
||||
class Main {
|
||||
{
|
||||
List<Optional<Function<String, String>>> list = asList(of(<error descr="Object is not a functional interface">Main::identity</error>));
|
||||
List<Optional<Function<String, String>>> list = asList(of(<error descr="java.lang.Object is not a functional interface">Main::identity</error>));
|
||||
}
|
||||
|
||||
static <T> List<T> asList(T a) { return null;}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class Test {
|
||||
{
|
||||
asList(<error descr="Target type of a lambda conversion must be an interface">o -> {}</error>, 1, 2, 3);
|
||||
asList(<error descr="Integer is not a functional interface">Test::foo</error>, 1, 2, 3);
|
||||
asList(<error descr="java.lang.Integer is not a functional interface">Test::foo</error>, 1, 2, 3);
|
||||
}
|
||||
|
||||
void foo() {}
|
||||
|
||||
Reference in New Issue
Block a user