2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-05-15 16:53:08 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4907941
|
|
|
|
* @summary missing ambiguity error
|
|
|
|
* @author gafter
|
|
|
|
*
|
2015-05-15 16:53:08 +00:00
|
|
|
* @compile/fail/ref=Covar3.out -XDrawDiagnostics Covar3.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package covar3;
|
|
|
|
|
|
|
|
interface Test3<T> {
|
|
|
|
void f( T f);
|
|
|
|
void f(String f);
|
|
|
|
}
|
|
|
|
|
|
|
|
class T {
|
|
|
|
void f(Test3<String> x) {
|
|
|
|
x.f("");
|
|
|
|
}
|
|
|
|
}
|