move instance method processor: expand method reference to lambda when needed

This commit is contained in:
Anna.Kozlova
2017-04-12 17:31:06 +02:00
parent 17848f40a4
commit 603dfac67a
6 changed files with 103 additions and 30 deletions
@@ -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();
}
}