mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 17:58:10 +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
@@ -1578,7 +1578,7 @@ static auto ExportFunctionToCpp(Context& context, SemIR::LocId loc_id,
|
||||
-> clang::NamedDecl* {
|
||||
if (const auto& callee = context.functions().Get(callee_function_id);
|
||||
callee.has_pending_deduced_return_type() ||
|
||||
(callee.has_deduced_return_type && callee.generic_id.has_value())) {
|
||||
(callee.has_deduced_return_type() && callee.generic_id.has_value())) {
|
||||
context.TODO(loc_id, "export of function with deduced return type");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user