mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 20:58:15 +00:00
Parse lambda -> ref T as a primitive return form (#7962)
This got lost when I rebased #7911 on top of #7893/#7894's lambda parsing rework. Assisted-by: Claude
This commit is contained in:
1 parent
df4ef552ad
commit
1429d1566e
2 files changed
+2
-2
No files matched your search
@@ -85,7 +85,7 @@ auto HandleLambdaAfterParams(Context& context) -> void {
|
||||
context.PushState(state, StateKind::LambdaBody);
|
||||
context.PushState(StateKind::FunctionReturnTypeFinish);
|
||||
context.ConsumeAndDiscard();
|
||||
context.PushStateForExpr(PrecedenceGroup::ForType());
|
||||
context.PushState(StateKind::ReturnTypeOrFormExpr);
|
||||
} else if (context.PositionIs(Lex::TokenKind::MinusGreaterQuestion)) {
|
||||
// Has return form.
|
||||
context.PushState(state, StateKind::LambdaBody);
|
||||
|
||||
Reference in new issue
Block a user