Lambda expressions support: drop generic lambda expressions

This commit is contained in:
Roman Shevchenko
2012-06-09 14:25:59 +04:00
parent 721229a05d
commit 93488641f8
9 changed files with 49 additions and 135 deletions
@@ -26,16 +26,11 @@ class C {
int parse(String s);
}
interface ListProducer<T> {
List<T> produce();
}
void test() {
Simplest simplest = <weak_warning descr="Lambda expressions type check is not yet implemented">() -> { }</weak_warning>;
use(<weak_warning descr="Lambda expressions type check is not yet implemented">() -> { }</weak_warning>);
IntParser intParser = <weak_warning descr="Lambda expressions type check is not yet implemented">(String s) -> Integer.parseInt(s)</weak_warning>;
ListProducer<String> listProducer = <weak_warning descr="Lambda expressions type check is not yet implemented"><T>() -> new ArrayList<T>()</weak_warning>;
}
Runnable foo() {