aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2019-02-19 01:47:49 +0100
committerRoel Spilker <r.spilker@gmail.com>2019-02-19 01:47:49 +0100
commit8479edb4262a7eb8cb76baba138f0ea5aae841c5 (patch)
tree06be11d07b5b216f8a5d422b00a4f800391ceeb3 /test/transform/resource/after-delombok
parentfd9045dac2a3d9b26125b8ccc865b23d8f7cd8d4 (diff)
downloadlombok-8479edb4262a7eb8cb76baba138f0ea5aae841c5.tar.gz
lombok-8479edb4262a7eb8cb76baba138f0ea5aae841c5.tar.bz2
lombok-8479edb4262a7eb8cb76baba138f0ea5aae841c5.zip
var/val in Eclipse can now handle intersection types, fixes #1986
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r--test/transform/resource/after-delombok/ValWeirdTypes.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ValWeirdTypes.java b/test/transform/resource/after-delombok/ValWeirdTypes.java
index cd6ba538..a6bc9bd4 100644
--- a/test/transform/resource/after-delombok/ValWeirdTypes.java
+++ b/test/transform/resource/after-delombok/ValWeirdTypes.java
@@ -1,3 +1,4 @@
+import java.math.BigDecimal;
import java.util.*;
public class ValWeirdTypes<Z> {
private List<Z> fieldList;
@@ -54,4 +55,9 @@ public class ValWeirdTypes<Z> {
final java.lang.Object[] single = multiDimArray[0];
final int singleInt = copy[0];
}
+ public void arraysAsList() {
+ final java.util.List<java.lang.Class<? extends java.lang.Object>> x = Arrays.asList(String.class, BigDecimal.class);
+ for (final java.lang.Class<?> y : x) {
+ }
+ }
}