Skip to content

Add type RBS::Unnamed::TopLevelSelfClass to core#2362

Merged
soutaro merged 4 commits intoruby:masterfrom
ksss:top-level-self-class
Mar 9, 2026
Merged

Add type RBS::Unnamed::TopLevelSelfClass to core#2362
soutaro merged 4 commits intoruby:masterfrom
ksss:top-level-self-class

Conversation

@ksss
Copy link
Collaborator

@ksss ksss commented Mar 27, 2025

First step of #2361

I defined RBS::Unnamed::TopLevelSelfClass.
By itself, this doesn't change anything, but if type checkers implement this class as the class of the top-level object, it will make it possible to type-check methods specific to the top level.

@ksss ksss added this to the RBS 4.0 milestone Jun 16, 2025
@soutaro soutaro enabled auto-merge March 9, 2026 06:37
@soutaro soutaro merged commit 57986c6 into ruby:master Mar 9, 2026
21 checks passed
@ksss ksss deleted the top-level-self-class branch March 9, 2026 07:05
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.

2 participants