author | sogoel |
Fri, 15 May 2015 18:03:51 -0700 | |
changeset 30726 | 43e5997e0baf |
parent 5520 | 86e4b9a9da40 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
30726
43e5997e0baf
8075166: Group 14d: golden files for tests in tools/javac/generics/wildcards dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4916567 |
30726
43e5997e0baf
8075166: Group 14d: golden files for tests in tools/javac/generics/wildcards dir
sogoel
parents:
5520
diff
changeset
|
4 |
* @summary integrate improved wildcard substitution from CPH |
10 | 5 |
* @author gafter |
6 |
* |
|
30726
43e5997e0baf
8075166: Group 14d: golden files for tests in tools/javac/generics/wildcards dir
sogoel
parents:
5520
diff
changeset
|
7 |
* @compile/fail/ref=ParamCast.out -XDrawDiagnostics ParamCast.java |
10 | 8 |
*/ |
9 |
||
10 |
class A<T> {} |
|
11 |
class B<S, T> extends A<T> {} |
|
12 |
||
13 |
class Main { |
|
14 |
void f(A<String> as) { |
|
15 |
Object o = (B<?, Integer>) as; |
|
16 |
} |
|
17 |
} |