Re: Switch coverage with multiple branches

2021-08-26 Thread Remi Forax
ror(); } } } This code currently compiles even if the last case is not reachable. RĂ©mi - Original Message - > From: "daniel smith" > To: "amber-spec-experts" > Cc: "Gavin Bierman" > Sent: Samedi 24 Juillet 2021 00:28:08 > Subject:

Re: [External] : Re: Switch coverage with multiple branches

2021-07-25 Thread Dan Smith
> On Jul 23, 2021, at 3:48 PM, Remi Forax wrote: > > - Original Message - >> From: "daniel smith" >> To: "amber-spec-experts" >> Cc: "Gavin Bierman" >> Sent: Samedi 24 Juillet 2021 00:28:08 >> Subject: Switch cover

Re: Switch coverage with multiple branches

2021-07-23 Thread Remi Forax
- Original Message - > From: "daniel smith" > To: "amber-spec-experts" > Cc: "Gavin Bierman" > Sent: Samedi 24 Juillet 2021 00:28:08 > Subject: Switch coverage with multiple branches > An RFE for JEP 406 (or maybe bug fix? I hav

Switch coverage with multiple branches

2021-07-23 Thread Dan Smith
An RFE for JEP 406 (or maybe bug fix? I haven't dug into what the spec says). Can we make this compile? public class SwitchCoverage { sealed interface A {} sealed interface B1 extends A {} sealed interface B2 extends A {} sealed interface C extends A {} final class D1