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

22 lines
325 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4907941
* @summary missing ambiguity error
* @author gafter
*
* @compile/fail/ref=Covar3.out -XDrawDiagnostics Covar3.java
*/
package covar3;
interface Test3<T> {
void f( T f);
void f(String f);
}
class T {
void f(Test3<String> x) {
x.f("");
}
}