2009-03-25 10:28:36 +00:00
|
|
|
/*
|
2009-08-27 18:08:27 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2009-03-25 10:28:36 +00:00
|
|
|
* @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;}
|
|
|
|
}
|
|
|
|
}
|