aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/VarInFor.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2016-11-21 22:05:32 +0100
committerRoel Spilker <r.spilker@gmail.com>2016-11-21 22:05:32 +0100
commit369518c92ce4e79ce62ce334497c9309e074f44c (patch)
tree3cb84cf0975e2f66d030b027fa73505c9dd0e574 /test/transform/resource/before/VarInFor.java
parent192c569128d1ffb879fb104f44483e394032a790 (diff)
parentbae2018180e9eaf31b8a71a1f7d06e2265452f5c (diff)
downloadlombok-369518c92ce4e79ce62ce334497c9309e074f44c.tar.gz
lombok-369518c92ce4e79ce62ce334497c9309e074f44c.tar.bz2
lombok-369518c92ce4e79ce62ce334497c9309e074f44c.zip
Merge branch 'bulgakovalexander-feature/var'
Diffstat (limited to 'test/transform/resource/before/VarInFor.java')
-rw-r--r--test/transform/resource/before/VarInFor.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/transform/resource/before/VarInFor.java b/test/transform/resource/before/VarInFor.java
new file mode 100644
index 00000000..cc8c387e
--- /dev/null
+++ b/test/transform/resource/before/VarInFor.java
@@ -0,0 +1,12 @@
+//CONF: lombok.var.flagUsage = ALLOW
+import lombok.experimental.var;
+
+public class VarInFor {
+ public void enhancedFor() {
+ int[] list = new int[] {1, 2};
+ for (var shouldBeInt : list) {
+ System.out.println(shouldBeInt);
+ var shouldBeInt2 = shouldBeInt;
+ }
+ }
+} \ No newline at end of file