aboutsummaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental/pr262218/base/src/generics/ActionExecutor.java
blob: e323cc01a55caf9b5ee8ac169afa62e1c0e1b3cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package generics;

public class ActionExecutor {
	public static void main(String[] args) {
		DeleteAction<String> d = new DeleteAction<String>() {
			public String getSelected() {
				throw new RuntimeException();
			}
			
		};
		d.delete2++; 
		d.delete3.add(null);
	}
	
	void nothing2(DeleteAction<String> g) {
		g.delete2++;
	}
}