import java.util.*; import lombok.val; public class ValOutersWithGenerics { class Inner { } public void testOutersWithGenerics() { val foo = ""; List list = new ArrayList(); val elem = list.get(0); } public void testLocalClasses() { class Local {} val q = new Local(); } static class SubClass extends ValOutersWithGenerics { public void testSubClassOfOutersWithGenerics() { List list = new ArrayList(); val elem = list.get(0); } } }