mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
move instance method processor: expand method reference to lambda when needed
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
interface SAM {
|
||||
String m(MethodReference<String> f, F f1);
|
||||
}
|
||||
|
||||
|
||||
class F {
|
||||
String getX() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class MethodReference<X> {
|
||||
|
||||
static void test() {
|
||||
SAM s = (stringMethodReference, f1) -> f1.getX();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user