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

Mention that @redeclare comes from meta library on the 'Extension types' page #5874

Open
1 task
mmcdon20 opened this issue May 28, 2024 · 0 comments
Open
1 task
Assignees
Labels
a.language Relates to the Dart language tour e1-hours Can complete in < 8 hours of normal, not dedicated, work from.page-issue Reported in a reader-filed concern p2-medium Necessary but not urgent concern. Resolve when possible. st.triage.ltw Indicates Lead Tech Writer has triaged

Comments

@mmcdon20
Copy link
Contributor

Page URL

https://dart.dev/language/extension-types#redeclare

Page source

https://github.com/dart-lang/site-www/tree/main/src/content/language/extension-types.md

Describe the problem

The documentation talks about a @redeclare annotation, but unlike @override, the @redeclare annotation is not defined in the dart language itself. Instead it is defined in a separate package called meta, but this isn't mentioned anywhere in the documentation, so if someone wants to use a @redeclare annotation it is unclear how to do so.

Expected fix

Mention that using @redeclare requires you to import the meta library.

Additional context

No response

I would like to fix this problem.

  • I will try and fix this problem on dart.dev.
@mmcdon20 mmcdon20 added the from.page-issue Reported in a reader-filed concern label May 28, 2024
@atsansone atsansone added a.language Relates to the Dart language tour p2-medium Necessary but not urgent concern. Resolve when possible. e1-hours Can complete in < 8 hours of normal, not dedicated, work st.triage.ltw Indicates Lead Tech Writer has triaged labels May 31, 2024
@atsansone atsansone changed the title [PAGE ISSUE]: 'Extension types' @redeclare comes from meta library Mention that @redeclare comes from meta library on the 'Extension types' page May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a.language Relates to the Dart language tour e1-hours Can complete in < 8 hours of normal, not dedicated, work from.page-issue Reported in a reader-filed concern p2-medium Necessary but not urgent concern. Resolve when possible. st.triage.ltw Indicates Lead Tech Writer has triaged
Projects
None yet
Development

No branches or pull requests

3 participants