mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-07-27 22:09:57 +07:00
inference: don't distinguish parameterizations with 2 different interfaces (IDEA-163950)
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
class Test {
|
||||
|
||||
{
|
||||
Marker<String> cm = forEach(child1(), child2());
|
||||
}
|
||||
|
||||
public static <D> Child1<D> child1() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static <S> Child2<S> child2() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static <F, CM extends Marker<F>> CM forEach(CM contents, CM cm) {
|
||||
return null;
|
||||
}
|
||||
|
||||
interface Marker<A> {}
|
||||
static class Parent<S> {}
|
||||
|
||||
static class Child1<D> extends Parent<ChildAttr1> implements Marker<D> {}
|
||||
interface ChildAttr1 {}
|
||||
|
||||
static class Child2<S> extends Parent<ChildAttr2> implements Marker<S> {}
|
||||
interface ChildAttr2 {}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user