Skip to content

[Extension type] Add a @redeclare annotation #53121

Description

@pq

Extension types don't override but rather redeclare so we should probably discourage/disallow the use of the @override annotation on extension type members and provide an alternative annotation such as @redeclare to communicate when an extension type member is intended to be redeclaring. (Along with that we should consider a lint, like unnecessary_redeclare to flag misplaced annotations (e.g., like unnecesssary_overrides).

/cc @dart-lang/language-team @scheglov @bwilkerson @jacob314

Metadata

Metadata

Assignees

Labels

P3A lower priority bug or feature requestdevexp-pkg-metaIssues related to package:metaimplementationTrack the implementation of a specific feature (use on area-meta issue, not issues for each tool)legacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions