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:
David Blaikie authored and GitHub committed 2026-10-12 23:53:54 +00:00
1 parent df4ef552ad
commit 1429d1566e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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);