RFR: 8334722: Error emitted when switch expression does not yield any value lacks reasoning [v3]
Evemose
duke at openjdk.org
Mon Jun 24 14:29:35 UTC 2024
On Mon, 24 Jun 2024 10:18:32 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> The types of the expressions inside the `yield` statements are AFAIK only important for determining the type of the switch expression if the switch expression is standalone.
Thats actually true! I didnt know about this detail honestly. Concidering this info, this new message will, in fact, be missleading. Therefore, I am closing this PR.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19837#issuecomment-2186714084
More information about the compiler-dev
mailing list