mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
method ref: introduce method ref variable; accept method ref type separately
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class Test {
|
||||
{
|
||||
Bar c = Test::length;
|
||||
bar(c);
|
||||
}
|
||||
|
||||
public static Integer length(String s) {
|
||||
return s.length();
|
||||
}
|
||||
|
||||
static void bar(Bar bar) {}
|
||||
interface Bar {
|
||||
Integer _(String s);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user