diff options
Diffstat (limited to 'test/transform/resource/before/ValInLambda.java')
-rw-r--r-- | test/transform/resource/before/ValInLambda.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/transform/resource/before/ValInLambda.java b/test/transform/resource/before/ValInLambda.java index a5364f8e..6750d045 100644 --- a/test/transform/resource/before/ValInLambda.java +++ b/test/transform/resource/before/ValInLambda.java @@ -1,5 +1,8 @@ // version 8: +import java.util.function.Function; +import java.util.function.Supplier; + import lombok.val; class ValInLambda { @@ -25,4 +28,12 @@ class ValInLambda { lombok.val fooInner = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println; }; } + + public void inParameter() { + val foo = (Function<Supplier<String>, String>) s -> s.get(); + val foo2 = foo.apply(() -> { + val bar = ""; + return bar; + }); + } } |