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

[Augmentations] Extension type augmentation must omit representation variable #56375

Open
sgrekhov opened this issue Aug 5, 2024 · 1 comment
Labels
analyzer-spec Issues with the analyzer's implementation of the language spec area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. feature-augmentations Implementation of the augmentations feature P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug

Comments

@sgrekhov
Copy link
Contributor

sgrekhov commented Aug 5, 2024

Augmentations specification was recently updated and now contains the following statement.

The representation field clause must be present on the declaration which introduces the extension type, and must be omitted from all augmentations of the extension type.

But analyzer doesn't support extension types augmentations without representation field and produces SYNTACTIC_ERROR.MISSING_PRIMARY_CONSTRUCTOR. Please, implement this functionality.

@sgrekhov sgrekhov added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. feature-augmentations Implementation of the augmentations feature labels Aug 5, 2024
@pq pq added analyzer-spec Issues with the analyzer's implementation of the language spec P2 A bug or feature request we're likely to work on labels Aug 5, 2024
@pq
Copy link
Member

pq commented Aug 5, 2024

@scheglov

@srawlins srawlins added the type-enhancement A request for a change that isn't a bug label Sep 6, 2024
@srawlins srawlins changed the title [Augmentations] Extension type augmenntation must ommit representation variable [Augmentations] Extension type augmentation must omit representation variable Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-spec Issues with the analyzer's implementation of the language spec area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. feature-augmentations Implementation of the augmentations feature P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

3 participants