[fixes #2624] Resolve variables in switch expressions

This commit is contained in:
Rawi01 committed 2021-04-22 07:53:25 +02:00
1 parent 5120abe474
commit 400e0f7544
4 files changed
+52 -6

No files matched your search

@@ -0,0 +1,13 @@
// version 14:
import lombok.val;
public class ValSwitchExpression {
public void method(int arg) {
val x = switch (arg) {
default -> {
val s = "string";
yield arg;
}
};
}
}