Support for -> ref/var/val auto. (#7977)

Extend support for return type deduction to also handle top-level
category specifiers.

Assisted-by: Claude via Antigravity
This commit is contained in:
Richard Smith authored and GitHub committed 2026-10-15 21:13:38 +00:00
1 parent f0b030f2c7
commit 3af25cc1ba
14 files changed
+595 -49

No files matched your search

+1 -1
View File
@@ -112,7 +112,7 @@ auto HandleParseNode(Context& context, Parse::LambdaDefinitionStartId node_id)
return_specifier.form.type_component_inst_id,
.return_form_inst_id = return_specifier.form.form_inst_id,
.return_pattern_id = return_specifier.pattern_id,
.has_deduced_return_type = return_specifier.is_deduced,
.deduced_return_kind = return_specifier.deduced_return_kind,
}});
context.inst_block_stack().AddInstId(decl_id);