Skip to content

Fix sealed intermediate parent - #543

Merged
vinistock merged 2 commits into
mainfrom
vs_fix_sealed_intermediate_parent
Sep 21, 2026
Merged

vinistock merged 2 commits into
mainfrom
vs_fix_sealed_intermediate_parent

Conversation

@vinistock

@vinistock vinistock commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

Sorbet doesn't support intermediate parent sealed classes yet. Right now, we have ImplicitSystem < System < Fault, but only Fault is marked as sealed.

This works fine in execution, but it makes Tapioca gem RBI generation crash because it incorrectly detects that System is not properly sealed due to other classes inheriting from it.

The workaround, as specified in the issue, is to mark the intermediate ones as sealed too. I checked and this does fix the gem RBI generation.

This PR just adds the sealed annotation and bumps the patch version to cut a bugfix release.

@selviarora since you shipped some changes in main, can we make the next a patch release or does it have to be a minor?

Sorbet doesn't support intermediate sealed parent
classes yet
sorbet/sorbet#8117. That
makes Tapioca gem RBI generation crash without
marking the intermediate class as sealed.
@vinistock
vinistock merged commit 2a01cbb into main Sep 21, 2026
17 checks passed
@vinistock
vinistock deleted the vs_fix_sealed_intermediate_parent branch September 21, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants