mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
testdata for javac resolution order: to be merged in java 9 update
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
class MyTest
|
||||
{
|
||||
private final static Logger LOGGER = Logger.getLogger(MyTest.class.getName());
|
||||
|
||||
public static void test(List<List<String>> testList) {
|
||||
testList.forEach( MyTest.bind(MyTest.cast(LOGGER::info), iterable -> ""));
|
||||
}
|
||||
|
||||
private static <A1, A2> TestConsumer<A1, A2> bind(Consumer<? super A2> delegate, Function<A1, A2> function) {
|
||||
return null;
|
||||
}
|
||||
|
||||
private static <C1> Consumer<C1> cast(Consumer<C1> consumer)
|
||||
{
|
||||
return consumer;
|
||||
}
|
||||
|
||||
private interface TestConsumer<T1, T2> extends Consumer<T1> { }
|
||||
|
||||
}
|
||||
@@ -178,6 +178,10 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testTopLevelParentNoParameters() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user