mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:50:56 +07:00
14 lines
246 B
Java
14 lines
246 B
Java
// "Replace lambda with method reference" "true-preview"
|
|
class MyTest2<X> {
|
|
MyTest2(X x) {
|
|
}
|
|
|
|
interface I<Z> {
|
|
MyTest2<Z> m(Z z);
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
I<String> s = MyTest2::new;
|
|
}
|
|
}
|