mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-02 22:51:01 +07:00
Fixes IDEA-362351 An Incorrect Error warning "Non-static methods cannot be referenced from a static context" Fixes IDEA-173183 Wrong error message for method reference Improves IDEA-208532 Incorrect Inspect code error in lambda expression method reference GitOrigin-RevId: 8f7a17688eaa1aba72bbccd45395967656108668
15 lines
313 B
Java
15 lines
313 B
Java
class Test {
|
|
interface I {
|
|
void m(Integer x1, Integer x2, Integer x3);
|
|
}
|
|
|
|
static class Foo {
|
|
static void foo() {}
|
|
}
|
|
|
|
<T> void bar(I i) {}
|
|
|
|
void test() {
|
|
bar<error descr="'bar(Test.I)' in 'Test' cannot be applied to '(<method reference>)'">(Foo::foo)</error>;
|
|
}
|
|
} |