mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 23:20:57 +07:00
17 lines
235 B
Plaintext
17 lines
235 B
Plaintext
interface SAM {
|
|
String m(MethodReference<String> f, F f1);
|
|
}
|
|
|
|
|
|
class F {
|
|
String getX() {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
class MethodReference<X> {
|
|
|
|
static void test() {
|
|
SAM s = (stringMethodReference, f1) -> f1.getX();
|
|
}
|
|
} |