/
githubmirror
/
panama-vector
Обзор
Документация
Войти
/
githubmirror
/
panama-vector
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/langtools/tools/javac/lambda/MethodReference20.java
24 строки
577 B
Archie L. Cobbs
8163229: several regression tests have a main method that is never executed
17 янв 2023, 07:43
17 янв 2023, 07:43
382fe51
Код
Авторство
О чём код?
/* * @test /nodynamiccopyright/ * @bug 8003280 * @summary Add lambda tests * basic test for constructor references and generic classes * @author Maurizio Cimadamore * @compile/fail/ref=MethodReference20.out -XDrawDiagnostics MethodReference20.java */ class MethodReference20<X> { MethodReference20(X x) { } interface SAM<Z> { MethodReference20<Z> m(Z z); } static void test(SAM<Integer> s) { } public static void meth() { SAM<Integer> s = MethodReference20<String>::new; test(MethodReference20<String>::new); } }