Skip to content

Switch exhaustiveness by rewriting #5080

Description

@stephan-herrmann

From scanning the code I could not find an implementation for this from JLS 14.11.1.1. Exhaustive Switch Blocks:

A set of case elements, P, covers a type T if one of the following cases applies:
[...]

  • P rewrites to a set Q and Q covers T.

With more details in this paragraph.

@mpalat @srikanth-sankaran had you noticed this JLS paragraph during your work on enhanced switches? Has the above been implemented and I just looked in the wrong places?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions