mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 10:15:19 +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,18 @@
|
||||
// version 8:
|
||||
class ValInLambda {
|
||||
Runnable foo = (Runnable) () -> {
|
||||
final int i = 1;
|
||||
};
|
||||
|
||||
public void easyLambda() {
|
||||
Runnable foo = (Runnable) () -> {
|
||||
final int i = 1;
|
||||
};
|
||||
}
|
||||
|
||||
public void easyIntersectionLambda() {
|
||||
Runnable foo = (Runnable) () -> {
|
||||
final int i = 1;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user