Skip to content

feat(sv): support static class members, super and base constructors - #1696

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/string-class-heap/support-static-class-members-super-base--15a7dd1a
Oct 22, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/string-class-heap/support-static-class-members-super-base--15a7dd1a

Conversation

@tignear

@tignear tignear commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Classes may now extend a class that has a constructor, call members of
their base through super, and declare static properties and methods
(IEEE 1800-2023 8.9, 8.10, 8.15, 8.17, 8.23).

  • A new expression allocates the object and passes it to the
    constructor C::new(this, args), which only initializes it: it calls
    the base constructor with the arguments of a leading super.new(...)
    or of extends Base(...), runs the initializers of the properties
    its class declares, then its body. Constructors are no longer
    inherited, so a class without one gets an implicit constructor that
    calls its base.
  • super.m() and super.p reach the members of the base through
    this. C::new creates an object of class C.
  • A static property is a variable of the module that declares the class,
    initialized like other module variables, so each module instance has
    its own. h.p, C::p and unqualified names inside methods refer to
    it. A static method takes no this and may be called through a
    handle, as C::m() or unqualified inside the class; a static method
    that uses a non-static member is rejected.
  • C::name with a class C is no longer looked up as a package item.
  • ++ and -- work on properties.

sv-tests: 8.7-constructor_super, 8.8-typed_constructor,
8.9-static_properties, 8.10-static_methods, 8.13-inheritance,
8.14-override_member, 8.15-super, 8.17-constructor_const_arg and
8.23-scope_resolution now pass in both state modes (509 / 511).
Icarus 13.0 cannot parse class scope resolution; its failure on the new
static-member case is recorded as a reviewed limitation.

@tignear

tignear commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(sv): support static class members, super and base constructors #1696 👈
2 feat(sv): support virtual methods, abstract classes and interface class implementation #1724
3 feat(sv)!: support interface class handles and $cast of class handles #1758

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-21T13:08:05.836238Z
We couldn’t complete this review. Comment @codex review to try again.
9a40751 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@mergify

mergify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Queued — the merge queue status continues in this comment ↓.

@tignear
tignear force-pushed the stack/tignear/feat/string-class-heap/support-classes-props-methods-constructors--2389fee4 branch from ff22f03 to 84585ca Compare October 22, 2026 01:04
@tignear
tignear force-pushed the stack/tignear/feat/string-class-heap/support-static-class-members-super-base--15a7dd1a branch from 9a40751 to 24af60a Compare October 22, 2026 01:04
@tignear

tignear commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 9a40751 2026-10-22 01:03 UTC
2 content 9a40751 → 24af60a Rebased onto master; merged conformance README, limitations and module lists with the latch/file-input/distribution changes and updated sv-tests totals to the new baseline. 2026-10-22 01:03 UTC
3 content 24af60a → e2b0181 Rebased onto master; class shards regenerated for the new derived_properties_hide_base_properties case. 2026-10-22 04:25 UTC
4 rebase e2b0181 → 44acf26 (rebase only) 2026-10-22 08:43 UTC
5 content 44acf26 → 906cd37 2026-10-22 14:08 UTC
6 content 906cd37 → 535f07b Rebased onto master after #1737; resolved the lower_subroutine conflict (keeps its formal_types and persistent_locals) and raised the sv-tests totals by one for its two accepted rows. 2026-10-22 21:10 UTC

@tignear
tignear force-pushed the stack/tignear/feat/string-class-heap/support-static-class-members-super-base--15a7dd1a branch from 24af60a to e2b0181 Compare October 22, 2026 04:25
@tignear
tignear force-pushed the stack/tignear/feat/string-class-heap/support-classes-props-methods-constructors--2389fee4 branch from 84585ca to d9257ae Compare October 22, 2026 04:25
@tignear
tignear force-pushed the stack/tignear/feat/string-class-heap/support-classes-props-methods-constructors--2389fee4 branch from d9257ae to bd253bf Compare October 22, 2026 08:44
@tignear
tignear force-pushed the stack/tignear/feat/string-class-heap/support-static-class-members-super-base--15a7dd1a branch from e2b0181 to 44acf26 Compare October 22, 2026 08:44
@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 22, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 22, 2026
@mergify

mergify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-22 11:41 UTC · Rule: changes · triggered by rule Queue explicitly requested merges
  • 🚫 Left the queue — 2026-10-22 12:06 UTC · at 44acf26ab321ed03688a009ad7cfe6988cee73c2

This pull request spent 25 minutes 51 seconds in the queue, with no time running CI.

Reason

Pull request #1696 has been dequeued

Queue conditions are not satisfied:

Hint

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.
If you do update this pull request, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

Requeued — the merge queue status continues in this comment ↓.

@mergify mergify Bot added dequeued Mergify stopped this queue entry; investigate before retrying and removed queued Mergify queue entry labels Oct 22, 2026
@tignear
tignear force-pushed the stack/tignear/feat/string-class-heap/support-static-class-members-super-base--15a7dd1a branch from 44acf26 to 906cd37 Compare October 22, 2026 14:09
@tignear
tignear force-pushed the stack/tignear/feat/string-class-heap/support-classes-props-methods-constructors--2389fee4 branch from bd253bf to 20012bc Compare October 22, 2026 14:09
@mergify mergify Bot removed the dequeued Mergify stopped this queue entry; investigate before retrying label Oct 22, 2026
Base automatically changed from stack/tignear/feat/string-class-heap/support-classes-props-methods-constructors--2389fee4 to master October 22, 2026 16:48
@tignear

tignear commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio refresh

@tignear

tignear commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

refresh

✅ Pull request refreshed

@mergify

mergify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

🛑 Queue command has been cancelled

@mergify mergify Bot added the queued Mergify queue entry label Oct 22, 2026
@mergify mergify Bot added dequeued Mergify stopped this queue entry; investigate before retrying and removed queued Mergify queue entry labels Oct 22, 2026
Classes may now extend a class that has a constructor, call members of
their base through `super`, and declare static properties and methods
(IEEE 1800-2023 8.9, 8.10, 8.15, 8.17, 8.23).

- A `new` expression allocates the object and passes it to the
  constructor `C::new(this, args)`, which only initializes it: it calls
  the base constructor with the arguments of a leading `super.new(...)`
  or of `extends Base(...)`, runs the initializers of the properties
  its class declares, then its body. Constructors are no longer
  inherited, so a class without one gets an implicit constructor that
  calls its base.
- `super.m()` and `super.p` reach the members of the base through
  `this`. `C::new` creates an object of class `C`.
- A static property is a variable of the module that declares the class,
  initialized like other module variables, so each module instance has
  its own. `h.p`, `C::p` and unqualified names inside methods refer to
  it. A static method takes no `this` and may be called through a
  handle, as `C::m()` or unqualified inside the class; a static method
  that uses a non-static member is rejected.
- `C::name` with a class `C` is no longer looked up as a package item.
- `++` and `--` work on properties.

sv-tests: 8.7-constructor_super, 8.8-typed_constructor,
8.9-static_properties, 8.10-static_methods, 8.13-inheritance,
8.14-override_member, 8.15-super, 8.17-constructor_const_arg and
8.23-scope_resolution now pass in both state modes (509 / 511).
Icarus 13.0 cannot parse class scope resolution; its failure on the new
static-member case is recorded as a reviewed limitation.

Change-Id: I15a7dd1a41d0358f92163d3683ed46b3caa06f7a
@tignear
tignear force-pushed the stack/tignear/feat/string-class-heap/support-static-class-members-super-base--15a7dd1a branch from 906cd37 to 535f07b Compare October 22, 2026 21:12
@mergify mergify Bot added queued Mergify queue entry and removed dequeued Mergify stopped this queue entry; investigate before retrying labels Oct 22, 2026
@mergify

mergify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 1 hour 9 minutes 52 seconds in the queue, including 1 hour 8 minutes 16 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on=celox-sim/celox#1696 [⛓️ feat(sv): support static class members, super and base constructors #1696 [stack]]
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@mergify
mergify Bot merged commit ddf2067 into master Oct 22, 2026
31 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/string-class-heap/support-static-class-members-super-base--15a7dd1a branch October 22, 2026 23:35
@mergify mergify Bot removed the queued Mergify queue entry label Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant