introduce field from lambda expr test

This commit is contained in:
anna
2012-07-24 17:51:53 +02:00
parent 445fe5c251
commit 146765a32b
3 changed files with 33 additions and 0 deletions
@@ -0,0 +1,14 @@
interface SAM<X> {
X m(int i, int j);
}
class Foo {
public final int anInt = 0;
void test() {
m((i, j) -> {
return i + j;
});
}
void m(SAM<Integer> s) { }
}
@@ -0,0 +1,13 @@
interface SAM<X> {
X m(int i, int j);
}
class Foo {
void test() {
m((i, j) -> {
<selection>0</selection>
return i + j;
});
}
void m(SAM<Integer> s) { }
}