aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/ValLambda.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-07-09 00:20:43 +0200
committerGitHub <noreply@github.com>2019-07-09 00:20:43 +0200
commit8b805fadf74499c7bbf1724cfe6fea9d485d4b87 (patch)
tree7f3d93fe1f6f346103e84441c2200237b9ad5d01 /test/transform/resource/after-delombok/ValLambda.java
parentc1039553b088dc45d272b942d930414d3224b06c (diff)
parenta899ffcbca7d7d9e3d616659d12a843fe02da6f6 (diff)
downloadlombok-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/ValLambda.java')
-rw-r--r--test/transform/resource/after-delombok/ValLambda.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ValLambda.java b/test/transform/resource/after-delombok/ValLambda.java
index 00ff27ad..24ae3b5f 100644
--- a/test/transform/resource/after-delombok/ValLambda.java
+++ b/test/transform/resource/after-delombok/ValLambda.java
@@ -1,15 +1,27 @@
// version 8:
class ValLambda {
+ static {
+ final java.lang.Runnable foo = (System.currentTimeMillis() > 0) ? (Runnable) () -> {
+ } : System.out::println;
+ }
+
+ {
+ final java.lang.Runnable foo = (System.currentTimeMillis() > 0) ? (Runnable) () -> {
+ } : System.out::println;
+ }
+
public void easyLambda() {
final java.lang.Runnable foo = (Runnable) () -> {
};
}
+
public void easyIntersectionLambda() {
final java.lang.Runnable foo = (Runnable & java.io.Serializable) () -> {
};
final java.io.Serializable bar = (java.io.Serializable & Runnable) () -> {
};
}
+
public void easyLubLambda() {
final java.lang.Runnable foo = (System.currentTimeMillis() > 0) ? (Runnable) () -> {
} : System.out::println;