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?
From scanning the code I could not find an implementation for this from JLS 14.11.1.1. Exhaustive Switch Blocks:
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?