File: A_test0_out.java

package info (click to toggle)
eclipse-jdt-ui 4.29-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 93,280 kB
  • sloc: java: 831,977; xml: 14,578; jsp: 33; makefile: 5
file content (38 lines) | stat: -rw-r--r-- 816 bytes parent folder | download | duplicates (4)
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
28
29
30
31
32
33
34
35
36
37
38
package p;

class TestInlineLambda0 {
	
	private FI fun1() {
		FI fi1 = x -> x++;	// [1]
		FI fi2;
		fi2 = x -> x++;		// [2]	
		
		FI[] a = new FI[] {x -> x++, x -> x++}; // [3]
		FI[][] b = new FI[][] {{x -> x++, x -> x++}, {x -> x++}}; // [4]
		FI[] c = {x -> x++, x -> x++}; // [5]
		FI[][] d = {{x -> x++}, {x -> x++}}; // [6]
	
		int x1 = fun2(x -> x++);	// [7]
		TestInlineLambda0 c1 = new TestInlineLambda0(x -> x++);	// [8]
		F f1 = (fi_p) -> x -> x++;	// [9]
		F f2 = (fi_p) -> {
			return x -> x++;		// [10]
		};
		f1.bar(x -> x++); // [11]
		FI fi4 = true ? x -> x++ : x -> x++; // [12]
		return x -> x++;		// [13]
	}
	
	private int fun2(FI fi) {return 0;}
	public TestInlineLambda0(FI fi) { }
}

@FunctionalInterface
interface FI {
	int foo(int x);
}

@FunctionalInterface
interface F {
	FI bar(FI fi);
}