mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
in class case, static methods must have signatures with different erasures, for interfaces, static methods
15 lines
376 B
Java
15 lines
376 B
Java
import java.util.List;
|
|
|
|
class InterfaceStaticMethodsWithSameErasure {
|
|
interface A<I, R> {
|
|
static <I, R> A<I, R> foo(List<I> a) { return null; }
|
|
}
|
|
|
|
interface B<I, R> extends A<I, R> {
|
|
static <I, R> B<I, R> foo(List<R> b) { return null; }
|
|
}
|
|
|
|
static abstract class C<I, R> implements B<I, R> { }
|
|
|
|
static class D<I, R> extends C<I, R> { }
|
|
} |