mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 02:14:44 +00:00
added supporting for @val variables inside lambdas.
This commit is contained in:
1 parent
444d77faa2
commit
0f0cb68eac
8 files changed
+113
-3
No files matched your search
@@ -0,0 +1,21 @@
|
||||
// version 8:
|
||||
|
||||
import lombok.val;
|
||||
|
||||
class ValInLambda {
|
||||
Runnable foo = (Runnable) () -> {
|
||||
val i = 1;
|
||||
};
|
||||
|
||||
public void easyLambda() {
|
||||
Runnable foo = (Runnable) () -> {
|
||||
val i = 1;
|
||||
};
|
||||
}
|
||||
|
||||
public void easyIntersectionLambda() {
|
||||
Runnable foo = (Runnable) () -> {
|
||||
val i = 1;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user