aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/ValWithLocalClasses.java
blob: 0d145aa920bd47ae8773d18abcc90754ac50d372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// version :9
//issue 694: In javac, resolving the RHS (which is what val does) can cause an entire class to be resolved, breaking all usage of val inside that class. This tests that we handle that better.
class ValWithLocalClasses1 {
	{
		lombok.val f2 = new ValWithLocalClasses2() {};
	}
}

class ValWithLocalClasses2 {
	{
		lombok.val f3 = 0;
	}
}