mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-06 12:17:02 +00:00
[fixes #2787] Handle right hand side of assignment first
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user