mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
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:
@@ -190,7 +190,6 @@ auto HandlePatternListElementCheckForDefaultValue(Context& context) -> void {
|
||||
return;
|
||||
}
|
||||
|
||||
// No underscore, we parse this as a normal expression.
|
||||
context.PushStateForExpr(state.ambient_precedence);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user