lambda.isValueCompatible should not cache inference results for calls inside lambda body as they may depend on incomplete top level inference where LambdaExpressionCompatibilityConstraint is reduced (IDEA-156311)

This commit is contained in:
Anna.Kozlova
2016-05-20 18:52:45 +02:00
parent 4332c90534
commit ce58f62d19
4 changed files with 151 additions and 0 deletions
@@ -324,6 +324,10 @@ public class NewLambdaHighlightingTest extends LightDaemonAnalyzerTestCase {
doTest();
}
public void testExceptionInLambdaBodyCheck() throws Exception {
doTest();
}
private void doTest() {
doTest(false);
}