mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
method ref: don't check method reference qualifier against functional interface (IDEA-141343)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
class E1 extends Exception {}
|
||||
class E2 extends Exception {}
|
||||
class Test {
|
||||
interface I {
|
||||
void m() throws E1;
|
||||
}
|
||||
|
||||
void a(I i) {}
|
||||
Test b() throws E2 {return this;}
|
||||
void c() throws E1 {}
|
||||
void e() throws E1, E2 {}
|
||||
|
||||
void d() throws E2 {
|
||||
a(b()::c);
|
||||
a(<error descr="Unhandled exception: E2">this::e</error>);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user