blob: c2cf7f43b226ecf2a1508c50e932e384b2eee1c1 [file] [log] [blame]
/*
* @test /nodynamiccopyright/
* @bug 4851039
* @summary explicit type arguments
* @author gafter
*
* @compile/fail/ref=ThisArg.out -XDrawDiagnostics ThisArg.java
*/
// Test type mismatch on type argument for this constructor
class T<X> {
class U<Y> extends T<X> {
<B> U(B b) {
<Object>super();
}
U(int i) {
<Integer>this("");
}
}
class V<Z> extends U<Z> {
<C> V(T<X> t) {
t.<Object>super("");
}
}
<A> T() {
}
<K> void f() {
this.<Object>f();
}
public static void main(String[] args) {
T<Integer> x = new <Object>T<Integer>();
T<Integer>.U<Float> y = x.new <Object>U<Float>("");
x.<Object>f();
}
}