RFR: 8305582: Compiler crash when compiling record patterns with var
Aggelos Biboudis
abimpoudis at openjdk.org
Tue May 2 22:34:15 UTC 2023
On Tue, 4 Apr 2023 17:34:27 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:
> While `var` is not allowed in record pattern position the compiler was not checking it. This PR address this issue, by introducing the relevant error symbols and error types.
>
> e.g., `if (o instanceof ColoredPoint(var(var x, var y), var c)) { }`
Small fix, looking for a reviewer 🙏
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13331#issuecomment-1532237887
More information about the compiler-dev
mailing list