Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate superclass and module-self-type #2289

Merged
merged 2 commits into from
Feb 25, 2025

Conversation

ksss
Copy link
Collaborator

@ksss ksss commented Feb 21, 2025

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
Copy link
Member

@soutaro soutaro left a comment

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
19 checks passed
@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
Development

Successfully merging this pull request may close these issues.

2 participants