mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 06:21:43 +00:00
13 lines
350 B
Java
13 lines
350 B
Java
// 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;
|
|
}
|
|
} |