jdk-24/test/langtools/tools/javac/generics/InheritanceConflict3.java
2017-09-12 19:03:39 +02:00

19 lines
347 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4984158
* @summary two inherited methods with same signature
* @author darcy
*
* @compile/fail/ref=InheritanceConflict3.out -XDrawDiagnostics InheritanceConflict3.java
*/
package inheritance.conflict3;
class X1<T> {
int f(T t) { throw null; }
void f(Object o) {}
}
class X2 extends X1 {
}