jdk-24/test/langtools/tools/javac/generics/rare/Rare6.java
2017-09-12 19:03:39 +02:00

24 lines
344 B
Java

/*
* @test /nodynamiccopyright/
* @bug 5024308
* @summary "rare" types
* @author gafter
*
* @compile/fail/ref=Rare6.out -XDrawDiagnostics Rare6.java
*/
package rare6;
class A<T> {
class B<U> {
T t;
}
static class C {
{
B b = null; // static error
// b.t = "foo";
}
}
}