aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/ValAnonymousSubclassSelfReference.java
blob: 6ca05b3cdb287137dc1c1d920093b410b52e4ef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// issue 2420: to trigger the problem 2 var/val, one normal variable and a anonymous self reference is required
import lombok.val;

public class ValAnonymousSubclassSelfReference {
	public void test() {
		int i = 0;
		val j = 1;
		val k = 2;

		new ValAnonymousSubclassSelfReference() { };
	}
}