lambda: testdata

This commit is contained in:
anna
2013-02-26 21:20:52 +01:00
parent 9c40687a13
commit 4bf90bf26d
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,12 @@
class Test {
interface I<T extends Number> {
void _(T t);
}
void foo(Object o) { }
void test() {
I<?> i1 = (x) -> {};
I<?> i2 = this :: foo;
}
}