On Mon, 9 May 2022 20:52:15 GMT, Vicente Romero <vrom...@openjdk.org> wrote:
> I've noticed that this code: > > ``` > class Test { > String e(E e) { > return switch (e) { > case A -> "42"; > }; > } > > enum E { > A, B; > } > } > ``` > > fails with: > > ``` > Test.java:3: error: the switch expression does not cover all possible input > values > return switch (e) { > ^ > 1 error > ``` > > before this change but gets accepted with no errors after the change in this > PR Oops, sorry, should be fixed now ([a0d0c78](https://github.com/openjdk/jdk/pull/8516/commits/a0d0c78bcbb5ecb010c2e9bd235b3ae89eb00823)). ------------- PR: https://git.openjdk.java.net/jdk/pull/8516