mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-05 12:50:18 +07:00
17 lines
282 B
Java
17 lines
282 B
Java
// "Create field 'foo' in 'Target'" "false"
|
|
|
|
public class MethodReference {
|
|
void test() {
|
|
Supplier<Target> supplier = Target::new;
|
|
Supplier<Target> s = Target::<caret>foo;
|
|
}
|
|
}
|
|
|
|
class Target {
|
|
|
|
private Target() {}
|
|
|
|
private static Target foo() {
|
|
return null;
|
|
}
|
|
} |