aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-07-17 12:43:56 +0100
committergingerBill <bill@gingerbill.org>2023-07-17 12:43:56 +0100
commit921530dd01e940600692caba0b19185399daa2e0 (patch)
tree7cecad27b92db76cad918e56e48049d0c7397fb1 /src/types.cpp
parentdcf3023d93de612575acd9794b039e2514c010c0 (diff)
Fix to allow procedure groups on objective-c types
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 385ca926d..847aea9f3 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -3081,7 +3081,7 @@ gb_internal Selection lookup_field_with_selection(Type *type_, String field_name
mutex_lock(md->mutex);
defer (mutex_unlock(md->mutex));
for (TypeNameObjCMetadataEntry const &entry : md->value_entries) {
- GB_ASSERT(entry.entity->kind == Entity_Procedure);
+ GB_ASSERT(entry.entity->kind == Entity_Procedure || entry.entity->kind == Entity_ProcGroup);
if (entry.name == field_name) {
sel.entity = entry.entity;
sel.pseudo_field = true;