aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r--test/transform/resource/after-delombok/ValErrors.java8
-rw-r--r--test/transform/resource/after-delombok/ValWeirdTypes.java10
2 files changed, 14 insertions, 4 deletions
diff --git a/test/transform/resource/after-delombok/ValErrors.java b/test/transform/resource/after-delombok/ValErrors.java
index 5ac785ab..770a7e95 100644
--- a/test/transform/resource/after-delombok/ValErrors.java
+++ b/test/transform/resource/after-delombok/ValErrors.java
@@ -1,8 +1,8 @@
public class ValErrors {
- public void nullType() {
- final val a = null;
- }
public void unresolvableExpression() {
- final val c = d;
+ final java.lang.Object c = d;
+ }
+ public void arrayInitializer() {
+ val e = {"foo", "bar"};
}
} \ No newline at end of file
diff --git a/test/transform/resource/after-delombok/ValWeirdTypes.java b/test/transform/resource/after-delombok/ValWeirdTypes.java
index 66212906..34beb80b 100644
--- a/test/transform/resource/after-delombok/ValWeirdTypes.java
+++ b/test/transform/resource/after-delombok/ValWeirdTypes.java
@@ -44,4 +44,14 @@ public class ValWeirdTypes<Z> {
final java.util.AbstractList<java.lang.String> d = c ? a : b;
java.util.RandomAccess confirm = c ? a : b;
}
+ public void nullType() {
+ final java.lang.Object nully = null;
+ }
+ public void testArrays() {
+ final int[] intArray = new int[]{1, 2, 3};
+ final java.lang.Object[][] multiDimArray = new Object[][]{{}};
+ final int[] copy = intArray;
+ final java.lang.Object[] single = multiDimArray[0];
+ final int singleInt = copy[0];
+ }
} \ No newline at end of file