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() ->

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


More information about the amber-dev mailing list