Skip to content

Conversation

@Linyxus
Copy link
Contributor

@Linyxus Linyxus commented Jan 1, 2025

Partly fixes #22103

Given a capture set variable C defined with C <: CapSet^, TypeRef(C).stripCapturing previously does nothing, which is apparently wrong. For "normal" type variables there is not a problem since type variables are always pure, so stripping can do nothing for them. But this won't work for capture set variable.

This PR fixes this behavior by stripping capture variables like C to CapSet.

Given a capture set variable `C`, its `stripCapturing` should be just `CapSet`.
@Linyxus Linyxus closed this Jul 9, 2025
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.

Improve Subtyping and Normalization of Capture Sets

1 participant