mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-20 06:06:42 +00: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:
1 parent
e617d64939
commit
d6d70bf80d
12 files changed
+331
-47
No files matched your search
@@ -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