new inference: ignore trivial dependencies

This commit is contained in:
Anna Kozlova
2014-09-01 21:46:10 +04:00
parent 510cdf7355
commit 4d3d6e8a8c
3 changed files with 40 additions and 9 deletions
@@ -0,0 +1,27 @@
class ExplicitLambdaNoParams {
interface I<T> {
T a();
}
<F> I<F> foo(I<F> iff) { return null;}
{
foo(() -> foo(() -> 1)).a();
I<Integer> a1 = foo(() -> foo(() -> 1)).a();
}
}
class LambdaWithFormalParameterTypes {
interface I<T> {
T a(int p);
}
<F> I<F> foo(I<F> iff) { return null;}
{
foo((int a) -> foo((int b) -> 1)).a(0);
I<Integer> a1 = foo((int a) -> foo((int b) -> 1)).a(0);
}
}
@@ -94,6 +94,7 @@ public class NewLambdaHighlightingTest extends LightDaemonAnalyzerTestCase {
public void testIDEA126109() { doTest(); }
public void testIDEA126809() { doTest(); }
public void testIDEA124424() { doTest(); }
public void testNestedLambdaExpressions1() { doTest(); }
public void testIDEA127596() throws Exception {
doTest();