aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarold Brenes <harold@hbrenes.com>2025-11-07 21:38:34 -0500
committerHarold Brenes <harold@hbrenes.com>2025-11-07 21:38:34 -0500
commit3a07a324117cc7562ecb3de2be7bb7aeb3b398fb (patch)
tree8a2368f66c4fe450fedf7a49648d090f6abdfcfc
parent40437b52ebca62b787337e1ddb684cbb92ff5b97 (diff)
Don't check procedure signature similarity when a foreign import proc is an Objective-C method.
-rw-r--r--src/check_decl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index e54943d80..27babd255 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -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 {