diff options
Diffstat (limited to 'test/transform/resource/before/ValLambda.java')
-rw-r--r-- | test/transform/resource/before/ValLambda.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/transform/resource/before/ValLambda.java b/test/transform/resource/before/ValLambda.java index 4ec73b82..d13221fd 100644 --- a/test/transform/resource/before/ValLambda.java +++ b/test/transform/resource/before/ValLambda.java @@ -11,6 +11,9 @@ class ValLambda { public void easyLubLambda() { lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println; + lombok.val foo2 = (System.currentTimeMillis() < 0) ? (java.util.function.Function) r -> "" : r -> System.currentTimeMillis(); + java.util.function.Function foo3 = (System.currentTimeMillis() < 0) ? (java.util.function.Function) r -> "" : r -> System.currentTimeMillis(); + lombok.val foo4 = (System.currentTimeMillis() < 0) ? (java.util.function.Function<String, String>) r -> "" : r -> String.valueOf(System.currentTimeMillis()); } // public void castLubLambda() { |