mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
17 lines
333 B
Java
17 lines
333 B
Java
public class Test {
|
|
{
|
|
if (<error descr="Method reference expression is not expected here">Test::length instanceof String</error>) {
|
|
}
|
|
bar(Test::length);
|
|
}
|
|
|
|
public static Integer length(String s) {
|
|
return s.length();
|
|
}
|
|
|
|
public static void bar(Bar bar) {}
|
|
|
|
interface Bar {
|
|
Integer _(String s);
|
|
}
|
|
} |