functional interfaces: allow intersection with 2 independent abstract methods with same signature (IDEA-171622)

This commit is contained in:
Anna.Kozlova
2017-04-21 19:31:38 +02:00
parent d680d55c99
commit 58fcabfd2b
4 changed files with 53 additions and 7 deletions

View File

@@ -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);
}
}

View File

@@ -0,0 +1,13 @@
interface X {
void m();
}
interface Y {
void m();
}
class Test {
{
((X & <caret>Y) () -> {}).m();
}
}