mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-25 06:52:37 +00:00
Add missing case for non-parameterized generic classes. (#7952)
Fixes #7950
This commit is contained in:
1 parent
9a4d4b332c
commit
df4ef552ad
2 files changed
+6
No files matched your search
@@ -1051,6 +1051,9 @@ static auto GetLocalGenericId(ImportContext& context,
|
||||
case CARBON_KIND(SemIR::FunctionType fn_type): {
|
||||
return context.local_functions().Get(fn_type.function_id).generic_id;
|
||||
}
|
||||
case CARBON_KIND(SemIR::ClassType class_type): {
|
||||
return context.local_classes().Get(class_type.class_id).generic_id;
|
||||
}
|
||||
case CARBON_KIND(SemIR::ParameterizedClassType class_type): {
|
||||
return context.local_classes().Get(class_type.class_id).generic_id;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user