author | erikj |
Tue, 12 Sep 2017 19:03:39 +0200 | |
changeset 47216 | 71c04702a3d5 |
parent 30719 | langtools/test/tools/javac/generics/Covar3.java@91834c070ba5 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
30719
91834c070ba5
8074417: Group 13a: golden files for tests in tools/javac/generics dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4907941 |
4 |
* @summary missing ambiguity error |
|
5 |
* @author gafter |
|
6 |
* |
|
30719
91834c070ba5
8074417: Group 13a: golden files for tests in tools/javac/generics dir
sogoel
parents:
5520
diff
changeset
|
7 |
* @compile/fail/ref=Covar3.out -XDrawDiagnostics Covar3.java |
10 | 8 |
*/ |
9 |
||
10 |
package covar3; |
|
11 |
||
12 |
interface Test3<T> { |
|
13 |
void f( T f); |
|
14 |
void f(String f); |
|
15 |
} |
|
16 |
||
17 |
class T { |
|
18 |
void f(Test3<String> x) { |
|
19 |
x.f(""); |
|
20 |
} |
|
21 |
} |