Skip to content

Allow subclasses to redefine inherited attributes - #117

Merged
kylekthompson merged 1 commit into
mainfrom
subclass-attribute-redefinition
Aug 21, 2026
Merged

Allow subclasses to redefine inherited attributes#117
kylekthompson merged 1 commit into
mainfrom
subclass-attribute-redefinition

Conversation

@kylekthompson

Copy link
Copy Markdown
Owner

Summary

  • allow value and object subclasses to replace inherited attribute declarations
  • preserve parent declarations and inherited attribute order
  • retain same-block duplicate, storage, method, and union collision checks
  • document the supported subclass behavior

Verification

  • bundle exec rake

Subclass-specific contracts need to replace validation, coercion, and defaults without mutating the parent. Preserve strict duplicate and collision checks within each declaration.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0221f-e5b6-703e-a218-e156069052e3
@kylekthompson
kylekthompson force-pushed the subclass-attribute-redefinition branch from 5c88b52 to bb062bc Compare August 21, 2026 02:35
@kylekthompson
kylekthompson marked this pull request as ready for review August 21, 2026 02:35
@kylekthompson
kylekthompson enabled auto-merge (squash) August 21, 2026 02:35
@kylekthompson
kylekthompson merged commit 1cae4d8 into main Aug 21, 2026
4 checks passed
@kylekthompson
kylekthompson deleted the subclass-attribute-redefinition branch August 21, 2026 02:35
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