Skip to content

Validate superclass and module-self-type - #2289

Merged
ksss merged 2 commits into
ruby:masterfrom
ksss:validate-super-self_type
Feb 25, 2025
Merged

ksss merged 2 commits into
ruby:masterfrom
ksss:validate-super-self_type

Conversation

@ksss

@ksss ksss commented Feb 21, 2025

Copy link
Copy Markdown
Collaborator

I propose to validate for type application on the superclass and modules-self-type.
This change will allow users to quickly recognize this type specification error.

Note

This change will cause Unexpected error in steep and needs to be corrected.
This is because RBS::InvalidTypeApplicationError is not expected to occur in certain cases.
https://github.com/soutaro/steep/blob/5705673a6ef631771cda36a77b4dc7c0294a3941/lib/steep/services/signature_service.rb#L297-L298

@soutaro soutaro added this to the RBS 3.9 milestone Feb 25, 2025

@soutaro soutaro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ksss
ksss added this pull request to the merge queue Feb 25, 2025
Merged via the queue into ruby:master with commit e389107 Feb 25, 2025
@ksss
ksss deleted the validate-super-self_type branch February 25, 2025 13:14
ksss added a commit to ksss/steep that referenced this pull request Feb 25, 2025
ksss added a commit to ksss/steep that referenced this pull request Mar 6, 2025
@soutaro soutaro added the Released PRs already included in the released version label Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Released PRs already included in the released version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants