Draft JEPs: Pattern Matching for switch and Record Patterns

Gavin Bierman gavin.bierman at oracle.com
Mon Oct 3 16:05:01 UTC 2022

    case Point(var x, var y) when p.isVisible() ->

Of course I meant:

    case Point(var x, var y) p when p.isVisible() ->

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-spec-experts/attachments/20221003/9325c9e5/attachment-0001.htm>

More information about the amber-spec-experts mailing list