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

18 lines
414 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6182950
* @summary methods clash algorithm should not depend on return type
* @author mcimadamore
* @compile/fail/ref=T6182950b.out -XDrawDiagnostics T6182950b.java
*/
import java.util.List;
class T6182950b {
static class A {
int m(List<String> l) {return 0;}
}
static class B extends A {
double m(List<Integer> l) {return 0;}
}
}