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

Fix subtyping issues #1165

Merged
merged 6 commits into from
Jun 12, 2024
Merged

Fix subtyping issues #1165

merged 6 commits into from
Jun 12, 2024

Conversation

soutaro
Copy link
Owner

@soutaro soutaro commented Jun 12, 2024

Steep 1.7.0 introduces a new constraint that self cannot include instance and class types, and vice versa. This causes an unexpected type checking failure on FFI as reported in #1162.

This PR fixes the problem by delaying the constraint checking until the shape of self type is needed.

#916 is also fixed by handling the self, instance, and class types during validation.

Fixes #1162, #916.

@soutaro soutaro added this to the Steep 1.7.x milestone Jun 12, 2024
@soutaro soutaro added the area/core Issues related to the type checker core label Jun 12, 2024
@soutaro soutaro changed the title Fix ffi Fix subtyping issues Jun 12, 2024
@soutaro soutaro merged commit b3e1a34 into master Jun 12, 2024
23 checks passed
@soutaro soutaro deleted the fix-ffi branch June 12, 2024 03:12
@soutaro soutaro added the Released The PR is already included in a published release label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core Issues related to the type checker core Released The PR is already included in a published release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Steep 1.7.0 stuck when running check
1 participant