added supporting for @val variables inside lambdas.

This commit is contained in:
Bulgakov Alexander authored and Roel Spilker committed 2016-10-17 22:32:21 +02:00
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;
};
}
}