The following code fails to format when using the native version of the formatter. (The JVM version works fine.)
class Main {
void test() {
switch (test) {
case Test(final var x, final var y) -> {}
}
}
}
On the other hand, both of these examples are accepted:
class Main {
void test() {
switch (test) {
case Test(var x, final var y) -> {}
}
}
}
class Main {
void test() {
if (test instanceof Test(final var x, final var y)) {}
}
}
Tested on version 1.27.0.
The following code fails to format when using the native version of the formatter. (The JVM version works fine.)
On the other hand, both of these examples are accepted:
Tested on version 1.27.0.