diff options
3 files changed, 42 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ValWithLocalClasses.java b/test/transform/resource/after-delombok/ValWithLocalClasses.java new file mode 100644 index 00000000..b739b10e --- /dev/null +++ b/test/transform/resource/after-delombok/ValWithLocalClasses.java @@ -0,0 +1,11 @@ +class ValWithLocalClasses1 { + { + final ValWithLocalClasses2 f2 = new ValWithLocalClasses2(){ + }; + } +} +class ValWithLocalClasses2 { + { + final int f3 = 0; + } +} diff --git a/test/transform/resource/after-ecj/ValWithLocalClasses.java b/test/transform/resource/after-ecj/ValWithLocalClasses.java new file mode 100644 index 00000000..59880acf --- /dev/null +++ b/test/transform/resource/after-ecj/ValWithLocalClasses.java @@ -0,0 +1,20 @@ +class ValWithLocalClasses1 { + { + final @lombok.val ValWithLocalClasses2 f2 = new ValWithLocalClasses2() { + x() { + super(); + } + }; + } + ValWithLocalClasses1() { + super(); + } +} +class ValWithLocalClasses2 { + { + final @lombok.val int f3 = 0; + } + ValWithLocalClasses2() { + super(); + } +} diff --git a/test/transform/resource/before/ValWithLocalClasses.java b/test/transform/resource/before/ValWithLocalClasses.java new file mode 100644 index 00000000..8c6be4f9 --- /dev/null +++ b/test/transform/resource/before/ValWithLocalClasses.java @@ -0,0 +1,11 @@ +class ValWithLocalClasses1 { + { + lombok.val f2 = new ValWithLocalClasses2() {}; + } +} + +class ValWithLocalClasses2 { + { + lombok.val f3 = 0; + } +}
\ No newline at end of file |