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