infer generic functional types by lambda's formal parameters and exact method refs

This commit is contained in:
Anna Kozlova
2014-11-03 19:13:05 +01:00
parent 7ff1765627
commit 0ca896928f
4 changed files with 70 additions and 23 deletions
@@ -0,0 +1,7 @@
import java.util.function.Consumer;
class Foo {
void test() {
Consumer<Integer> l = System::exit;
}
}