TypePattern and "var variable"

Gavin Bierman gavin.bierman at oracle.com
Wed Jun 30 08:40:16 UTC 2021

Thanks Rémi. It is discussed in the section “Array Patterns”. But I can call it out a little more explicitly. 


> On 29 Jun 2021, at 14:10, Remi Forax <forax at univ-mlv.fr> wrote:
> I was re-reading JEP 405,
> 'var foo' is accepted by the grammar as Type Pattern but
> there is no section explicitly mentioning that.
> Maybe i'm wrong and 'var foo' is already supported in Java 17,
> if it's not the case, i think we should add a section about the Type Pattern being enhanced to support 'var'.
> regards,
> Rémi

More information about the amber-spec-experts mailing list