mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
cache diamond inference results
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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)))))))));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user