lambda: infer lambda param types in method call, return statement context

This commit is contained in:
anna
2012-07-19 18:44:23 +02:00
parent 533f276ad4
commit f90fadbd52
8 changed files with 73 additions and 83 deletions
@@ -28,7 +28,7 @@ class C {
void test() {
Simplest simplest = () -> { };
use(<weak_warning descr="Lambda expressions type check is not yet implemented">() -> { }</weak_warning>);
use(() -> { });
IntParser intParser = (String s) -> Integer.parseInt(s);
}