aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValInLambda.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-ecj/ValInLambda.java')
-rw-r--r--test/transform/resource/after-ecj/ValInLambda.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/ValInLambda.java b/test/transform/resource/after-ecj/ValInLambda.java
index 0fac61e9..1f56ee3f 100644
--- a/test/transform/resource/after-ecj/ValInLambda.java
+++ b/test/transform/resource/after-ecj/ValInLambda.java
@@ -1,3 +1,5 @@
+import java.util.function.Function;
+import java.util.function.Supplier;
import lombok.val;
class ValInLambda {
Runnable foo = (Runnable) () -> {
@@ -24,4 +26,11 @@ class ValInLambda {
} : System.out::println);
};
}
+ public void inParameter() {
+ final @val java.util.function.Function<java.util.function.Supplier<java.lang.String>, java.lang.String> foo = (Function<Supplier<String>, String>) (<no type> s) -> s.get();
+ final @val java.lang.String foo2 = foo.apply(() -> {
+ final @val java.lang.String bar = "";
+ return bar;
+});
+ }
}