/
githubmirror
/
panama-vector
Обзор
Документация
Войти
/
githubmirror
/
panama-vector
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/langtools/tools/javac/lambda/MethodReference04.java
14 строк
367 B
Erik Joelsson
8187443: Forest Consolidation: Move files to unified layout
12 сен 2017, 20:03
12 сен 2017, 20:03
3789983
Код
Авторство
О чём код?
/* * @test /nodynamiccopyright/ * @bug 8003280 * @summary Add lambda tests * check that target type of a method ref is a SAM type * @author Maurizio Cimadamore * @compile/fail/ref=MethodReference04.out -XDrawDiagnostics MethodReference04.java */ class MethodReference04 { void m(Integer i) {} Object o = this::m; //fail - not a valid target type }