#1976. naive fix of the eclipse compiler's error 'The target type of this expression must be a functional interface' in code like 'lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println;'

This commit is contained in:
Bulgakov Alexander committed 2019-05-07 10:49:25 +03:00
1 parent 8276dee255
commit 06fb1034ea
4 files changed
+37 -6

No files matched your search

@@ -10,7 +10,7 @@ class ValLambda {
}
public void easyLubLambda() {
lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : (Runnable)System.out::println;
lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println;
}
// public void castLubLambda() {