mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 16:44:36 +02:00
23 lines
344 B
Java
23 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";
|
|
}
|
|
}
|
|
}
|