mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-28 17:04:34 +00:00
Don't check procedure signature similarity when a foreign import proc is an Objective-C method.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user