mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +07:00
method refs: take qualifier's type arguments in account
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
class MyTest {
|
||||
interface I {
|
||||
String m(Foo<String> f);
|
||||
}
|
||||
|
||||
class Foo<X> {
|
||||
String foo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
{
|
||||
I i = Foo<String> :: foo;
|
||||
<error descr="Incompatible types. Found: '<method reference>', required: 'MyTest.I'">I i1 = Foo<Integer> :: foo;</error>
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user