Fix canonicalization and simplify default value patterns. (#7837)

Removes support for unspecified default values. Fixes canonicalization
of the `DefaultValuePattern` instruction by making them immutable after
they are issued, and by removing the `DefaultValueId` operand which
wasn't being canonicalized.
This commit is contained in:
Lucile Rose Nihlen
2026-09-25 22:59:55 +00:00
committed by GitHub
parent 3fad8b9eab
commit 1579d4ec7e
50 changed files with 3878 additions and 4325 deletions
-1
View File
@@ -190,7 +190,6 @@ auto HandlePatternListElementCheckForDefaultValue(Context& context) -> void {
return;
}
// No underscore, we parse this as a normal expression.
context.PushStateForExpr(state.ambient_precedence);
}