testdata for IDEA-149774
authorAnna Kozlova <anna.kozlova@jetbrains.com>
Mon, 28 Dec 2015 17:59:45 +0000 (18:59 +0100)
committerAnna Kozlova <anna.kozlova@jetbrains.com>
Mon, 28 Dec 2015 18:07:22 +0000 (19:07 +0100)
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/graphInference/IDEA149774.java [new file with mode: 0644]
java/java-tests/testSrc/com/intellij/codeInsight/daemon/lambda/GraphInferenceHighlightingTest.java

diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/graphInference/IDEA149774.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/graphInference/IDEA149774.java
new file mode 100644 (file)
index 0000000..c3094be
--- /dev/null
@@ -0,0 +1,14 @@
+
+interface Item<K, V>{}
+interface Holder<A, B> {
+  boolean apply(Item<? extends A, ? extends B> i);
+}
+class C {
+  void f(Holder<?,?> h) {
+    h.apply(create());
+  }
+
+  private <L, M> Item<L,M> create() {
+    return null;
+  }
+}
\ No newline at end of file
index 5b6a9741a14dd46d2eaa4fe0ffe8a20029c627e8..0e724b5422022e4dcdd161a970c8c577471f9b38 100644 (file)
@@ -355,6 +355,10 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
     doTest();
   }
 
+  public void testIDEA149774() throws Exception {
+    doTest();
+  }
+
   private void doTest() throws Exception {
     doTest(false);
   }