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/before | |
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/before')
-rw-r--r-- | test/transform/resource/before/ValInLambda.java | 7 | ||||
-rw-r--r-- | test/transform/resource/before/ValLambda.java | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/transform/resource/before/ValInLambda.java b/test/transform/resource/before/ValInLambda.java index 2c2a5942..a5364f8e 100644 --- a/test/transform/resource/before/ValInLambda.java +++ b/test/transform/resource/before/ValInLambda.java @@ -5,6 +5,7 @@ import lombok.val; class ValInLambda { Runnable foo = (Runnable) () -> { val i = 1; + lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println; }; public void easyLambda() { @@ -18,4 +19,10 @@ class ValInLambda { val i = 1; }; } + + public void easyLubLambda() { + Runnable foo = (Runnable) () -> { + lombok.val fooInner = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println; + }; + } } diff --git a/test/transform/resource/before/ValLambda.java b/test/transform/resource/before/ValLambda.java index 35f83c3c..5c9c4a43 100644 --- a/test/transform/resource/before/ValLambda.java +++ b/test/transform/resource/before/ValLambda.java @@ -1,5 +1,13 @@ // version 8: class ValLambda { + + static { + lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println; + } + { + lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println; + } + public void easyLambda() { lombok.val foo = (Runnable)()-> {}; } |