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

Add capability modifier for capability classes #16717

Closed
wants to merge 1 commit into from

Conversation

Linyxus
Copy link
Contributor

@Linyxus Linyxus commented Jan 18, 2023

This is a proof-of-concept PR for adding a modifier for capability classes, so that we can write:

erased capability class CanIO

which will be desugared into:

erased class CanIO_$base
type CanIO = {*} CanIO_$base

This is meant to be a replacement for @capability annotation, and should fix #16725.

This PR:

  • add the modifier capability
  • add desugaring logic

@Linyxus
Copy link
Contributor Author

Linyxus commented Jul 14, 2023

The desugaring introduced in this PR creates problems like importing. So #16851 is probably a better solution.

@Linyxus Linyxus closed this Jul 14, 2023
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.

Capability class is not properly boxed in implicit type argument
1 participant