mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
16 lines
374 B
Java
16 lines
374 B
Java
import java.util.*;
|
|
|
|
class Foo {
|
|
interface Comparable<T> { }
|
|
static <T extends Comparable<T>> void sort(T t) {}
|
|
|
|
class C implements Comparable<C> {}
|
|
class D implements Comparable<String> {}
|
|
|
|
{
|
|
Foo.<C>sort(new C());
|
|
Foo.<<error descr="Type parameter 'Foo.D' is not within its bound; should implement 'Foo.Comparable<Foo.D>'">D</error>>sort(new D());
|
|
}
|
|
}
|
|
|