aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/VarInFor.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-ecj/VarInFor.java')
-rw-r--r--test/transform/resource/after-ecj/VarInFor.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/VarInFor.java b/test/transform/resource/after-ecj/VarInFor.java
new file mode 100644
index 00000000..0192aaed
--- /dev/null
+++ b/test/transform/resource/after-ecj/VarInFor.java
@@ -0,0 +1,14 @@
+import lombok.experimental.var;
+public class VarInFor {
+ public VarInFor() {
+ super();
+ }
+ public void enhancedFor() {
+ int[] list = new int[]{1, 2};
+ for (@var int shouldBeInt : list)
+ {
+ System.out.println(shouldBeInt);
+ @var int shouldBeInt2 = shouldBeInt;
+ }
+ }
+} \ No newline at end of file