2025-05-14 06:42:07 +00:00

15 lines
314 B
Java

/*
* @test /nodynamiccopyright/
* @bug 5009484
* @summary Compiler fails to resolve appropriate type for outer member
* @author Peter von der Ahé
* @compile/fail/ref=Y.out -XDrawDiagnostics Y.java
*/
public class Y<T> {
private T t;
class Foo extends Y<Y<T>> {
Y<T> y = t;
}
}