mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
functional interfaces: allow intersection with 2 independent abstract methods with same signature (IDEA-171622)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
interface X {
|
||||
void m(Integer i);
|
||||
}
|
||||
|
||||
interface Y<T> {
|
||||
void m(T t);
|
||||
}
|
||||
|
||||
class Test {
|
||||
{
|
||||
((X & <caret>Y<Integer>) (x) -> {}).m(1);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
interface X {
|
||||
void m();
|
||||
}
|
||||
|
||||
interface Y {
|
||||
void m();
|
||||
}
|
||||
|
||||
class Test {
|
||||
{
|
||||
((X & <caret>Y) () -> {}).m();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user