mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
16 lines
334 B
Java
16 lines
334 B
Java
// "Make 'PrivateMethodRef.filter()' not static" "true-preview"
|
|
|
|
import java.util.function.Predicate;
|
|
|
|
class PrivateMethodRef {
|
|
boolean filter() {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
class Some {
|
|
public static void main(String[] args) {
|
|
PrivateMethodRef f = null;
|
|
Predicate<PrivateMethodRef> filter2 = PrivateMethodRef::filter;
|
|
}
|
|
} |