mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
introduce field from lambda expr test
This commit is contained in:
@@ -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) { }
|
||||
}
|
||||
Reference in New Issue
Block a user