mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Accept generic parameter lists in class declarations. (#3933)
Check that they match across redeclarations. Fix some importing bugs for symbolic bindings which were uncovered when testing this.
This commit is contained in:
@@ -134,6 +134,8 @@ static auto BuildFunctionDecl(Context& context,
|
||||
|
||||
SemIR::InstBlockId param_refs_id =
|
||||
context.node_stack().Pop<Parse::NodeKind::TuplePattern>();
|
||||
// TODO: Use Invalid rather than Empty if there was no implicit parameter
|
||||
// list.
|
||||
SemIR::InstBlockId implicit_param_refs_id =
|
||||
context.node_stack().PopIf<Parse::NodeKind::ImplicitParamList>().value_or(
|
||||
SemIR::InstBlockId::Empty);
|
||||
|
||||
Reference in New Issue
Block a user