blob: 861fb9da75abd414442b71160c1a7f9c50fb6f78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// version 8:
class ValInLambda {
Runnable foo = (Runnable) () -> {
final int i = 1;
final java.lang.Runnable foo = (System.currentTimeMillis() > 0) ? (Runnable) () -> {
} : System.out::println;
};
public void easyLambda() {
Runnable foo = (Runnable) () -> {
final int i = 1;
};
}
public void easyIntersectionLambda() {
Runnable foo = (Runnable) () -> {
final int i = 1;
};
}
public void easyLubLambda() {
Runnable foo = (Runnable) () -> {
final java.lang.Runnable fooInner = (System.currentTimeMillis() > 0) ? (Runnable) () -> {
} : System.out::println;
};
}
}
|