diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-04-04 13:03:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-04 13:03:27 +0100 |
| commit | 99aff7e3fbf77e3165054edbf84a507c776e34ce (patch) | |
| tree | eaf544ddb87d1f616d4bf89da8245828859df974 /src/types.cpp | |
| parent | 5fe0788cffcbcfd153ea23954b5a11a853ef50b4 (diff) | |
| parent | 5339e1e1b6824b67fbbe195e18d1122bda3dd6f7 (diff) | |
Merge pull request #3370 from laytan/fix-objc-proc-group-edge-case
fix objc proc group edge case
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp index 0bf28a28c..97512d29b 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -3158,7 +3158,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->type_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; |