mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
new inference: method refs: apply reference rules first
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class Test {
|
||||
|
||||
interface I {
|
||||
void m(Test rec, String s);
|
||||
}
|
||||
|
||||
void m(Test t, String s) {}
|
||||
void m(String s) {}
|
||||
|
||||
static void m(Test t, Object s) {}
|
||||
|
||||
static void test() {
|
||||
<error descr="Incompatible types. Found: '<method reference>', required: 'Test.I'">I i = Test::m;</error>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user