Don't check procedure signature similarity when a foreign import proc is an Objective-C method.

This commit is contained in:
Harold Brenes
2025-11-07 21:38:34 -05:00
parent 40437b52eb
commit 3a07a32411

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 {