new inference: collect additional constraints from lambda return expressions when...
[idea/community.git] / java / java-tests / testSrc / com / intellij / codeInsight / daemon / lambda / Java8ExpressionsCheckTest.java
index 60de9b9b87a3db8ecfee35b8dc21bda0700beb08..07be9f2b553f129ee088f20a8701757dd44a7898 100644 (file)
@@ -54,6 +54,10 @@ public class Java8ExpressionsCheckTest extends LightDaemonAnalyzerTestCase {
   public void testCacheUnresolvedMethods2() throws Exception {
     doTestCachedUnresolved();
   }
+  
+  public void testCacheUnresolvedMethods3() throws Exception {
+    doTestCachedUnresolved();
+  }
 
   private void doTestCachedUnresolved() {
     configureByFile(BASE_PATH + "/" + getTestName(false) + ".java");
@@ -80,6 +84,10 @@ public class Java8ExpressionsCheckTest extends LightDaemonAnalyzerTestCase {
     }
   }
 
+  public void testAdditionalConstraintsBasedOnLambdaResolution() throws Exception {
+    doTestAllMethodCallExpressions();
+  }
+
   private void doTestAllMethodCallExpressions() {
     configureByFile(BASE_PATH + "/" + getTestName(false) + ".java");
     final Collection<PsiCallExpression> methodCallExpressions = PsiTreeUtil.findChildrenOfType(getFile(), PsiCallExpression.class);