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