lambda: do not skip generic method when non-generic method exist in the same class

This commit is contained in:
Anna Kozlova
2014-04-22 20:02:52 +02:00
parent 7d74b9dcf1
commit 8bad8079f6
4 changed files with 50 additions and 13 deletions
@@ -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() {}
}