mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 14:11:04 +01:00
Handle runtime implicit parameters, and self outside of methods (#4361)
Closes #4356, #4359 --------- Co-authored-by: Josh L <josh11b@users.noreply.github.com>
This commit is contained in:
@@ -72,6 +72,8 @@ static auto DiagnoseModifiers(Context& context, DeclIntroducerState& introducer,
|
||||
static auto CheckFunctionSignature(Context& context,
|
||||
const NameComponent& name_and_params)
|
||||
-> void {
|
||||
RequireGenericOrSelfImplicitFunctionParams(
|
||||
context, name_and_params.implicit_params_id);
|
||||
SemIR::RuntimeParamIndex next_index(0);
|
||||
for (auto param_id : llvm::concat<const SemIR::InstId>(
|
||||
context.inst_blocks().GetOrEmpty(name_and_params.implicit_params_id),
|
||||
|
||||
Reference in New Issue
Block a user