mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
22 lines
527 B
Java
22 lines
527 B
Java
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<error descr="'create(java.util.Set<T>)' in 'Test' cannot be applied to '(java.util.Set<Test.MyConsumer>)'">(set)</error>;
|
|
|
|
}
|
|
|
|
public <S, T extends Consumer<S>> Map<S, T> create(Set<T> consumers) {
|
|
return null;
|
|
}
|
|
|
|
}
|