Skip to content

Struct intermediate class - #471

Merged
mame merged 2 commits into
masterfrom
struct-intermediate-class
Sep 1, 2026
Merged

Struct intermediate class#471
mame merged 2 commits into
masterfrom
struct-intermediate-class

Conversation

@mame

@mame mame commented Sep 1, 2026

Copy link
Copy Markdown
Member

No description provided.

mame added 2 commits September 1, 2026 17:07
The members and the generated initialize now live on a base class that the
struct class inherits from, so `super` from a user-written initialize reaches
them. The base is named `<struct base>`, and the two places that name a class
skip it, so the output is unchanged.

Fixes #458 (comment)
dump_declarations walked the block body looking for a def with the same name,
which missed an override written by reopening the struct class. Now that the
generated methods live on the base class, a def on the struct class itself is
exactly an override.
@mame
mame enabled auto-merge (rebase) September 1, 2026 08:16
@mame
mame merged commit 997c888 into master Sep 1, 2026
12 checks passed
@mame
mame deleted the struct-intermediate-class branch September 1, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant