mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 17:07:05 +07:00
lambda: do not skip generic method when non-generic method exist in the same class
This commit is contained in:
+27
@@ -14,3 +14,30 @@ class Test {
|
||||
C c = ()-> {};
|
||||
}
|
||||
}
|
||||
|
||||
class Test1 {
|
||||
|
||||
interface F {
|
||||
<X> void m();
|
||||
}
|
||||
|
||||
{
|
||||
F f = this::g;
|
||||
}
|
||||
|
||||
void g() {}
|
||||
}
|
||||
|
||||
class Test2 {
|
||||
|
||||
interface F {
|
||||
<X> void m();
|
||||
void a();
|
||||
}
|
||||
|
||||
{
|
||||
F f = <error descr="Multiple non-overriding abstract methods found">() -> g()</error>;
|
||||
}
|
||||
|
||||
void g() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user