mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 02:14:44 +00:00
#1976. [@val] improved raw generic type inference by eclipse compiler.
This commit is contained in:
1 parent
8f8cbae631
commit
1fec035aa5
5 files changed
+14
-2
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user