mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 16:47:50 +07:00
GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
14 lines
213 B
Java
14 lines
213 B
Java
// "Replace lambda with method reference" "true-preview"
|
|
class Example {
|
|
{
|
|
long[][] avg = collect(long[][]::new);
|
|
}
|
|
|
|
interface P<T> {
|
|
T _(int i);
|
|
}
|
|
|
|
<T> T collect(P<T> p) {
|
|
return null;
|
|
}
|
|
} |