aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValSwitchExpression.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-ecj/ValSwitchExpression.java')
-rw-r--r--test/transform/resource/after-ecj/ValSwitchExpression.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/ValSwitchExpression.java b/test/transform/resource/after-ecj/ValSwitchExpression.java
new file mode 100644
index 00000000..4e848572
--- /dev/null
+++ b/test/transform/resource/after-ecj/ValSwitchExpression.java
@@ -0,0 +1,16 @@
+// version 14:
+import lombok.val;
+public class ValSwitchExpression {
+ public ValSwitchExpression() {
+ super();
+ }
+ public void method(int arg) {
+ final @val var x = switch (arg) {
+ default ->
+ {
+ final @val var s = "string";
+ yield arg;
+ }
+ };
+ }
+} \ No newline at end of file