Skip to content

WIP :: Bugfix :: Fix type definition metadata: duplicate methods, event flags#19341

Draft
T-Gro wants to merge 2 commits intomainfrom
codegen/fix-typedefs-and-exceptions
Draft

WIP :: Bugfix :: Fix type definition metadata: duplicate methods, event flags#19341
T-Gro wants to merge 2 commits intomainfrom
codegen/fix-typedefs-and-exceptions

Conversation

@T-Gro
Copy link
Member

@T-Gro T-Gro commented Feb 20, 2026

Fixes type definitions emitting duplicate or incorrect metadata entries.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

✅ No release notes required

@T-Gro T-Gro force-pushed the codegen/fix-typedefs-and-exceptions branch 4 times, most recently from 63e792d to 3b64857 Compare February 20, 2026 17:23
Fixes #14321
Fixes #16565
Fixes #5834

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@T-Gro T-Gro force-pushed the codegen/fix-typedefs-and-exceptions branch from 3b64857 to 56491f1 Compare February 20, 2026 19:16
For DefaultAugmentation(false) (NoHelpers), EraseUnions generates a
get_<CaseName> method but no corresponding <CaseName> property for
nullary cases. The method discard correctly removes the user's
get_<CaseName> method, but the property discard only checked
tdef2.Properties — which is empty for NoHelpers — leaving an orphaned
property whose getter method ref points to the discarded method.

Fix: also check tdef2.Methods for a corresponding get_ method when
deciding whether to discard a user property.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

1 participant