inference: stop at assignment when walking up to the top level (IDEA-207128)

GitOrigin-RevId: d12b1e0af3e3f2880e14ecb000e82e3afa887228
This commit is contained in:
Anna Kozlova
2019-05-22 00:06:40 +03:00
committed by intellij-monorepo-bot
parent 076a9cbca4
commit d8afa71220
4 changed files with 72 additions and 2 deletions
@@ -0,0 +1,21 @@
import java.util.function.*;
class A {
{
B<Double> local;
method(local = new B<>(new C<>((supplier) -> supplier.get())));
}
void method(B<?> value) {
}
}
class B<T> {
B(C<T> c) { }
}
class C<T> {
C(Function<Supplier<T>, T> f) { }
}