javac ast indices is applied for lambda search

This commit is contained in:
Dmitry Batkovich
2016-09-28 18:27:36 +03:00
parent 000b0a0e78
commit 0a22f2529b
17 changed files with 330 additions and 173 deletions
@@ -0,0 +1,5 @@
class Bar {
void m() {
Foo f = () -> {};
}
}
@@ -0,0 +1,9 @@
import java.util.Collections;
class BarRef {
static void m() {
Foo r = Collections::emptyList;
}
}
@@ -0,0 +1,4 @@
@FunctionalInterface
public interface F<caret>oo {
void doAction();
}
@@ -0,0 +1,11 @@
interface FooImpl extends Foo {}
class AAA {
void m() {
FooImpl l = () -> {};
}
}