Skip to content

Improve construction of subclasses#694

Open
hadley wants to merge 2 commits into
mainfrom
parent-props
Open

Improve construction of subclasses#694
hadley wants to merge 2 commits into
mainfrom
parent-props

Conversation

@hadley

@hadley hadley commented Jun 10, 2026

Copy link
Copy Markdown
Member

hadley added 2 commits June 10, 2026 16:49
* `constructor_args()` no longer drops child properties that shadow parent properties, so they become constructor args with the child's default. Fixes #467.
* The generated body no longer passes declared properties to the parent constructor; they go to `new_object()` instead, which runs the child's setter and class check. Fixes #585.
* Read-only properties are removed from the constructor.
* Constructors for subclasses of abstract classes now include parent properties.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant