mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 17:20:30 +00:00
Basic support for implementing and using a parameterized interface. (#4203)
The main change here is to form a specific when checking an interface function against an impl function, instead of just substituting the `Self` type.
This commit is contained in:
1 parent
b2a13afb73
commit
4a21b6af9b
54 files changed
+998
-266
No files matched your search
@@ -77,8 +77,7 @@ static auto MergeFunctionRedecl(Context& context, SemIRLoc new_loc,
|
||||
SemIR::ImportIRId prev_import_ir_id) -> bool {
|
||||
auto& prev_function = context.functions().Get(prev_function_id);
|
||||
|
||||
if (!CheckFunctionTypeMatches(context, new_function, prev_function, {},
|
||||
/*check_syntax=*/true)) {
|
||||
if (!CheckFunctionTypeMatches(context, new_function, prev_function)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user