mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 12:12:42 +00:00
Fix handling of invalid struct entries (#2755)
This was incorrectly setting the finish state back to unknown, which resulted in a check. Instead, the finish state should be maintained.
This commit is contained in:
1 parent
7979c886e0
commit
81a7adc0e5
2 files changed
+58
-2
No files matched your search
@@ -600,8 +600,7 @@ auto Parser::HandleBraceExpressionParameterAfterDesignator(
|
||||
} else if (PositionIs(TokenKind::Equal)) {
|
||||
is_type = false;
|
||||
} else {
|
||||
HandleBraceExpressionParameterError(
|
||||
state, ParserState::BraceExpressionParameterFinishAsUnknown);
|
||||
HandleBraceExpressionParameterError(state, param_finish_state);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user