mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 01:58:11 +00:00
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:
1 parent
f0b030f2c7
commit
3af25cc1ba
14 files changed
+595
-49
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user