diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-07-09 00:20:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-09 00:20:43 +0200 |
commit | 8b805fadf74499c7bbf1724cfe6fea9d485d4b87 (patch) | |
tree | 7f3d93fe1f6f346103e84441c2200237b9ad5d01 /test/transform/resource/after-delombok/ValInLambda.java | |
parent | c1039553b088dc45d272b942d930414d3224b06c (diff) | |
parent | a899ffcbca7d7d9e3d616659d12a843fe02da6f6 (diff) | |
download | lombok-8b805fadf74499c7bbf1724cfe6fea9d485d4b87.tar.gz lombok-8b805fadf74499c7bbf1724cfe6fea9d485d4b87.tar.bz2 lombok-8b805fadf74499c7bbf1724cfe6fea9d485d4b87.zip |
Merge pull request #2138 from bulgakovalexander/feature/typeInferenceImprovements
val. override error handling policy for problemReporter to guarantee AbortCompilation is throwing.
Diffstat (limited to 'test/transform/resource/after-delombok/ValInLambda.java')
-rw-r--r-- | test/transform/resource/after-delombok/ValInLambda.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/transform/resource/after-delombok/ValInLambda.java b/test/transform/resource/after-delombok/ValInLambda.java index 7ce1e1b4..861fb9da 100644 --- a/test/transform/resource/after-delombok/ValInLambda.java +++ b/test/transform/resource/after-delombok/ValInLambda.java @@ -2,17 +2,26 @@ class ValInLambda { Runnable foo = (Runnable) () -> { final int i = 1; + final java.lang.Runnable foo = (System.currentTimeMillis() > 0) ? (Runnable) () -> { + } : System.out::println; }; - + public void easyLambda() { Runnable foo = (Runnable) () -> { final int i = 1; }; } - + public void easyIntersectionLambda() { Runnable foo = (Runnable) () -> { final int i = 1; }; } + + public void easyLubLambda() { + Runnable foo = (Runnable) () -> { + final java.lang.Runnable fooInner = (System.currentTimeMillis() > 0) ? (Runnable) () -> { + } : System.out::println; + }; + } } |