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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant