15 lines
318 B
Java
Raw Normal View History

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