testdata for IDEA-143390

This commit is contained in:
Anna Kozlova
2015-08-11 16:19:35 -07:00
parent 3af3676154
commit 8c2a945f80
2 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
class Bar {
interface Foo {}
interface Predicate<T> {}
interface Function<F, T> {}
static public void bar() {
filter(null,
and(compose(w(), x()), compose(w(), compose(z(), x())) ));
}
static Function<String, Foo> z() {
return null;
}
static Function<String, String> x() {
return null;
}
private static <X> Predicate<X> w() {
return null;
}
public static <T> Iterable<T> filter(final Iterable<T> u, final Predicate<? super T> p) {
return null;
}
public static <T> Predicate<T> and(Predicate<? super T>... c) {
return null;
}
public static <A, B> Predicate<A> compose(Predicate<B> p, Function<A, ? extends B> f) {
return null;
}
public static <A, B, C>Function<A, C> compose(Function<B, C> g, Function<A, B> f) {
return null;
}
}

View File

@@ -287,6 +287,10 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
doTest();
}
public void testIDEA143390() throws Exception {
doTest();
}
private void doTest() throws Exception {
doTest(false);
}