From 462aedcfc3a6948d2f09659961122b8eb2e35fc7 Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Thu, 25 Mar 2021 19:47:59 +0100 Subject: [fixes #2787] Handle right hand side of assignment first --- test/transform/resource/after-ecj/ValInLambda.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/transform/resource/after-ecj/ValInLambda.java') 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.lang.String> foo = (Function, String>) ( s) -> s.get(); + final @val java.lang.String foo2 = foo.apply(() -> { + final @val java.lang.String bar = ""; + return bar; +}); + } } -- cgit