Merge pull request #5902 from harold-b/hb.no-foreign-proc-check-on-imported-objc-methods

Don't check proc signature similarity for imported Objective-C methods
This commit is contained in:
Laytan
2025-11-08 22:00:39 +01:00
committed by GitHub

View File

@@ -1607,8 +1607,7 @@ gb_internal void check_proc_decl(CheckerContext *ctx, Entity *e, DeclInfo *d) {
if (is_arch_wasm() && foreign_library != nullptr) {
// NOTE(bill): this must be delayed because the foreign import paths might not be evaluated yet until much later
mpsc_enqueue(&ctx->info->foreign_decls_to_check, e);
} else {
// TODO(harold): Check if it's an objective-C foreign, if so, I don't think we need to check it.
} else if (!e->Procedure.is_objc_impl_or_import) {
check_foreign_procedure(ctx, e, d);
}
} else {