mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 12:15:00 +00:00
More test files, test files updated to be valid java, and ecj test now goes through the complete compile process. This means val and @Delegate testing is now enabled.
TODO: Update -eclipse tests.
This commit is contained in:
1 parent
5e9e16a6b9
commit
06581537f2
55 files changed
+691
-132
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import java.util.*;
|
||||
import lombok.val;
|
||||
|
||||
public class ValOutersWithGenerics<Z> {
|
||||
class Inner {
|
||||
}
|
||||
|
||||
public void testOutersWithGenerics() {
|
||||
val foo = "";
|
||||
List<Inner> list = new ArrayList<Inner>();
|
||||
val elem = list.get(0);
|
||||
}
|
||||
|
||||
public void testLocalClasses() {
|
||||
class Local<A> {}
|
||||
|
||||
val q = new Local<String>();
|
||||
}
|
||||
|
||||
static class SubClass extends ValOutersWithGenerics<String> {
|
||||
public void testSubClassOfOutersWithGenerics() {
|
||||
List<Inner> list = new ArrayList<Inner>();
|
||||
val elem = list.get(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user