functional interface suggester: accept non exact method references

This commit is contained in:
Anna Kozlova
2014-12-11 17:20:11 +01:00
parent 3265f05164
commit e767382757
5 changed files with 103 additions and 22 deletions
@@ -0,0 +1,10 @@
@FunctionalInterface
interface I<T> {
void foo(T t);
}
class Foo {
void test() {
I<String> l = String::toLowerCase;
}
}
@@ -0,0 +1,10 @@
@FunctionalInterface
interface I<T> {
void foo(T t);
}
class Foo {
void test() {
<selection>String::toLowerCase</selection>;
}
}