Skip to content

Conversation

@jchyb
Copy link
Contributor

@jchyb jchyb commented Jan 10, 2026

Turns out they were not supported altogether, so they would always warn. This could be hidden by the fact that the checks would not trigger for quoted.Type and quoted.Expr (but they still would for any product types containing them). Also confusing was the fact that extraction (val '{$t} = '{0}) refutability checks would be called, and those are usually aligned with exhaustivity warnings. This is indeed what this PR tries to do.

I will explain more later (for now let's just run the tests, I might also want to improve the reporting).

Fixes #24196

@jchyb jchyb force-pushed the space-quoted-pattern-fixes branch 2 times, most recently from 1faed75 to 4e57c2c Compare January 13, 2026 14:41
@jchyb jchyb force-pushed the space-quoted-pattern-fixes branch from 4e57c2c to a5a42bd Compare January 13, 2026 16:49
@jchyb jchyb force-pushed the space-quoted-pattern-fixes branch from a5a42bd to a238b5c Compare January 16, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False warning when matching against a pair of quoted type pattern

1 participant