[patterns-record-deconstruction3] Withdrawn: Fix parse error with nested record classes and empty record component list
Jan Lahoda
jlahoda at openjdk.java.net
Mon May 2 13:55:40 UTC 2022
On Fri, 29 Apr 2022 15:54:13 GMT, Aggelos Biboudis <duke at openjdk.java.net> wrote:
> This PR addresses the following parse error.
>
> The following snippet of code:
>
>
> interface W {
> record X1() implements W {}
> }
>
> public int test(W w) {
> return switch (w) {
> case W.X1() -> 1;
> };
> }
>
>
> reports that it cannot find symbol.
>
>
> error: cannot find symbol
> case W.X1() -> 1;
> ^
> symbol: method X1()
> location: interface W
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.java.net/amber/pull/83
More information about the amber-dev
mailing list