mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
inference: skip constraints that depend on ignored constraints
when type of lambda parameter is calculated, the containing lambda doesn't end in the constraints set; if some other constraints depend on it's output variables, inside those constraints e.g. method calls may be cached based on incomplete inference results which would lead to blinking of highlighting
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import java.util.function.Function;
|
||||
|
||||
class TestClass {
|
||||
|
||||
<H> void foo(Function<A, H> f, Function<H, String> toStr) {}
|
||||
|
||||
{
|
||||
foo(o1 -> A.getB(o1), o2 -> o2.getId());
|
||||
}
|
||||
}
|
||||
|
||||
class A {
|
||||
static B getB(A a) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
interface B {
|
||||
String getId();
|
||||
}
|
||||
Reference in New Issue
Block a user