File: TestInlineLambda_Ambiguous.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 (34 lines) | stat: -rw-r--r-- 615 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
// 5, 28 -> 5, 30  replaceAll = true, removeDeclaration = true
package p;

class TestClassN extends SuperClassN implements SuperInterfaceN {
	{
		bar1(0, x -> x++); // [1]
		bar2(0, x -> x++); // [2]
		bar3(0, x -> x++, 1); // [3]
	}
	
	void bar1(int x, FI fi) { }
	void bar2(int x, FI fi) { }
	
	void bar3(int i, FI fi, int j) { }
	void bar3(int i, String s, int j) { }
}

class SuperClassN {
	private void bar1(int i, FX fx) { }
}

interface SuperInterfaceN {
	static void bar2(int i, FX fx) { };
}

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

@FunctionalInterface
interface FX {
	int foo(String s);
}