mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
IDEA-94011
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
import java.util.*;
|
||||
class Test {
|
||||
|
||||
class Parent { }
|
||||
|
||||
interface Consumer<T> { }
|
||||
|
||||
interface MyConsumer<T extends Parent> extends Consumer<T> { }
|
||||
|
||||
|
||||
public void test(Set<MyConsumer> set) {
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<Parent, MyConsumer<Parent>> map = create(set);
|
||||
|
||||
}
|
||||
|
||||
public <S, T extends Consumer<S>> Map<S, T> create(Set<T> consumers) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user