mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 06:16:14 +00:00
11 lines
185 B
Java
11 lines
185 B
Java
// version 14:
|
|
public class ValSwitchExpression {
|
|
public void method(int arg) {
|
|
final var x = switch (arg) {
|
|
default -> {
|
|
final var s = "string";
|
|
yield arg;
|
|
}
|
|
};
|
|
}
|
|
} |