From 8479edb4262a7eb8cb76baba138f0ea5aae841c5 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Tue, 19 Feb 2019 01:47:49 +0100 Subject: var/val in Eclipse can now handle intersection types, fixes #1986 --- test/transform/resource/before/ValWeirdTypes.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/transform/resource/before') diff --git a/test/transform/resource/before/ValWeirdTypes.java b/test/transform/resource/before/ValWeirdTypes.java index 8cba2de5..4ea1b5d4 100644 --- a/test/transform/resource/before/ValWeirdTypes.java +++ b/test/transform/resource/before/ValWeirdTypes.java @@ -1,3 +1,4 @@ +import java.math.BigDecimal; import java.util.*; import lombok.val; @@ -64,4 +65,11 @@ public class ValWeirdTypes { val single = multiDimArray[0]; val singleInt = copy[0]; } + + public void arraysAsList() { + val x = Arrays.asList(String.class, BigDecimal.class); + for (val y : x) { + + } + } } \ No newline at end of file -- cgit