mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
testdata for IDEA-143390
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -287,6 +287,10 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testIDEA143390() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() throws Exception {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user