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

Make capture parameters and members bounded by CapSet by default #22000

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

noti0na1
Copy link
Member

@noti0na1 noti0na1 commented Nov 21, 2024

Fix #21999, #22005

class A:
  type C^

def f[C^](io: IO^{C^}) = ???

// becomes

class A:
  type C >: CapSet <: CapSet^

def f[C >: CapSet <: CapSet^](io: IO^{C^}) = ???

@noti0na1 noti0na1 force-pushed the make-cap-params-bounded-by-capset branch from 651b674 to c933560 Compare November 22, 2024 09:59
@noti0na1
Copy link
Member Author

TODO: treat capture variables/members like type variables/members.

@noti0na1 noti0na1 force-pushed the make-cap-params-bounded-by-capset branch from d016cce to a8c624e Compare November 24, 2024 22:22
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 Captureset Subtyping and Intervals
1 participant