aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValInLambda.java
diff options
context:
space:
mode:
authorBulgakov Alexander <abulgakov@at-consulting.ru>2016-09-22 14:48:41 +0300
committerRoel Spilker <r.spilker@gmail.com>2016-10-17 22:32:21 +0200
commit0f0cb68eac20c6f02b77c1fade88cdad8b7d85a2 (patch)
treeb65bf412b5b17b2852ba5d21a11c9556a3435315 /test/transform/resource/after-ecj/ValInLambda.java
parent444d77faa2836c7adf31fab0c8f601b4058d4130 (diff)
downloadlombok-0f0cb68eac20c6f02b77c1fade88cdad8b7d85a2.tar.gz
lombok-0f0cb68eac20c6f02b77c1fade88cdad8b7d85a2.tar.bz2
lombok-0f0cb68eac20c6f02b77c1fade88cdad8b7d85a2.zip
added supporting for @val variables inside lambdas.
Diffstat (limited to 'test/transform/resource/after-ecj/ValInLambda.java')
-rw-r--r--test/transform/resource/after-ecj/ValInLambda.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/ValInLambda.java b/test/transform/resource/after-ecj/ValInLambda.java
new file mode 100644
index 00000000..7669789b
--- /dev/null
+++ b/test/transform/resource/after-ecj/ValInLambda.java
@@ -0,0 +1,21 @@
+// version 8:
+
+import lombok.val;
+class ValInLambda {
+ Runnable foo = (Runnable) () -> {
+ final @val int i = 1;
+};
+ ValInLambda() {
+ super();
+ }
+ public void easyLambda() {
+ Runnable foo = (Runnable) () -> {
+ final @val int i = 1;
+};
+ }
+ public void easyIntersectionLambda() {
+ Runnable foo = (Runnable) () -> {
+ final @val int i = 1;
+};
+ }
+}