mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
new inference: method refs: accept qualifier substitutor when nothing more could be inferred
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class Test {
|
||||
|
||||
static class Foo<X> {
|
||||
X m() { return null;}
|
||||
}
|
||||
|
||||
interface I {
|
||||
Foo<Object> _i(Foo<String> fs);
|
||||
}
|
||||
|
||||
static void foo(I i) { }
|
||||
{
|
||||
foo(<error descr="Bad return type in method reference: cannot convert java.lang.String to Test.Foo<java.lang.Object>">Foo::m</error>);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user