introduce variable from lambda expression

This commit is contained in:
anna
2012-07-24 17:51:51 +02:00
parent 1ee26f5d5c
commit e0cad5f568
8 changed files with 60 additions and 7 deletions
@@ -0,0 +1,10 @@
interface SAM<X> {
X m(int i, int j);
}
class Foo {
void test() {
m(<selection>(i, j) -> i + j</selection>);
}
void m(SAM<Integer> s) { }
}