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

Include Examples of Multi-interface Restricted Types #2267

Closed
Tracked by #959
dete opened this issue Jan 23, 2023 · 3 comments
Closed
Tracked by #959

Include Examples of Multi-interface Restricted Types #2267

dete opened this issue Jan 23, 2023 · 3 comments
Assignees
Labels
Documentation Improvements or additions to documentation Feature Feedback

Comments

@dete
Copy link

dete commented Jan 23, 2023

Issue to be solved

The Cadence reference pages for restricted types and capabilities use examples with a single interface as part of the restriction to make things clear. I think it would be useful to include a note that explicitly says that multiple interfaces are allowed, and shows a simple, extended example with multiple interfaces as part of a restricted type.

Suggested Solution

No response

@dete dete added Documentation Improvements or additions to documentation Feature Feedback labels Jan 23, 2023
@j1010001 j1010001 mentioned this issue Apr 18, 2023
36 tasks
@turbolent
Copy link
Member

Can close once onflow/flips#85 is approved and implemented

@j1010001
Copy link
Member

j1010001 commented Aug 9, 2023

Add example for interface sets with multiple interfaces.

@dsainati1
Copy link
Contributor

I believe the new documentation actually already has this: https://developers.flow.com/next/cadence/language/intersection-types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation Feature Feedback
Projects
None yet
Development

No branches or pull requests

4 participants