mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 10:20:56 +07:00
18 lines
281 B
Java
18 lines
281 B
Java
class Test {
|
|
static class C<U> {
|
|
U u;
|
|
C(C<U> other) {
|
|
u = other.u;
|
|
}
|
|
|
|
C(U u) {
|
|
this.u = u;
|
|
}
|
|
}
|
|
|
|
static <U> C<U> foo(C<U> c) { return new C<U>(c); }
|
|
|
|
{
|
|
C<String> c = foo(new C<>(foo(new C<>(foo(new C<>(foo(new C<>(foo(null)))))))));
|
|
}
|
|
} |