From 3f408782de736a676ee19757894eb89c1f4ebf3b Mon Sep 17 00:00:00 2001 From: peichhorn Date: Thu, 19 Apr 2012 02:41:31 +0200 Subject: fixed: @val didn't work with rawtypes in enhanced for loops --- test/transform/resource/before/ValRawType.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/transform/resource/before/ValRawType.java (limited to 'test/transform/resource/before') diff --git a/test/transform/resource/before/ValRawType.java b/test/transform/resource/before/ValRawType.java new file mode 100644 index 00000000..3ef8527e --- /dev/null +++ b/test/transform/resource/before/ValRawType.java @@ -0,0 +1,20 @@ +import java.util.List; +import lombok.val; + +public class ValRawType { + public void test() { + Element propElement = new Element(); + for (val attribute : propElement.attributes()) { + val attr = (Attribute) attribute; + } + } + + static class Element { + public List attributes() { + return null; + } + } + + static class Attribute { + } +} \ No newline at end of file -- cgit