Skip to content

Parser: recover on missing 'when' conditions#20071

Open
auduchinok wants to merge 4 commits into
dotnet:mainfrom
auduchinok:parser-matchWhen
Open

Parser: recover on missing 'when' conditions#20071
auduchinok wants to merge 4 commits into
dotnet:mainfrom
auduchinok:parser-matchWhen

Conversation

@auduchinok

@auduchinok auduchinok commented Jul 21, 2026

Copy link
Copy Markdown
Member

Fixes parsing of missing when clause expressions, like the following:

match () with
| _ when -> ()
match () with
| a when
| b -> ()

@auduchinok
auduchinok requested a review from a team as a code owner July 21, 2026 16:32
@github-actions github-actions Bot added the ⚠️ Affects-Compiler-Output Tooling check: PR touches IL emission or codegen label Jul 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Tooling Safety Check — Affects-Compiler-Output
Affects-Compiler-Output: modifies parser grammar and CheckDeclarations

Generated by PR Tooling Safety Check · opus46 5.3M ·

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚠️ Affects-Compiler-Output Tooling check: PR touches IL emission or codegen

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

1 participant