1/*
2 * @test /nodynamiccopyright/
3 * @bug 4984158
4 * @summary two inherited methods with same signature
5 * @author gafter, Maurizio Cimadamore
6 *
7 * @compile/fail/ref=InheritanceConflict.out -XDrawDiagnostics   InheritanceConflict.java
8 */
9
10package inheritance.conflict;
11
12class A<T> {
13    void f(String s) {}
14}
15
16class B<T> extends A<T> {
17    void f(T t) {}
18}
19
20class C extends B<String> {
21}
22