Re: Guard variable and being effectively final

2022-05-21 Thread forax
- Original Message - > From: "cay horstmann" > To: "Remi Forax" , "amber-spec-experts" > > Sent: Saturday, May 21, 2022 7:50:44 PM > Subject: Re: Guard variable and being effectively final > Hi Rémy, > > it compiles with build 19-ea+23-1706 if you replace && with when. sadly, assig

Guard variable and being effectively final

2022-05-21 Thread Remi Forax
Not sure if it's an implementation bug (bad error message from the compiler) or a spec bug, hence this message to both amber-dev and amber-spec-experts. If i try to compile this code with Java 19 (which currently still uses && instead of when for a guard) interface reverse_polish_notation { s