Skip to content

Support for extension types in strict modes #53982

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

Closed
Tracked by #49732
srawlins opened this issue Nov 7, 2023 · 0 comments
Closed
Tracked by #49732

Support for extension types in strict modes #53982

srawlins opened this issue Nov 7, 2023 · 0 comments
Assignees
Labels
devexp-warning Issues with the analyzer's Warning codes feature-extension-types Implementation of the extension type feature legacy-area-analyzer Use area-devexp instead. 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

@srawlins
Copy link
Member

srawlins commented Nov 7, 2023

There may not be much to do here, but here are some examples:

  • This should be reported for strict-raw-types:

    extension type ET(List it) {}
  • This should be reported for strict-inference:

    extension type ET<T>(int it) {}
    
    var x = ET(it); // could not infer T!
  • This for strict-casts:

    extension type ET(int it) {}
    
    dynamic d = "hello";
    var x = ET(d); // cast from dynamic!
@srawlins srawlins added legacy-area-analyzer Use area-devexp instead. devexp-warning Issues with the analyzer's Warning codes P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug feature-extension-types Implementation of the extension type feature labels Nov 7, 2023
@srawlins srawlins self-assigned this Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devexp-warning Issues with the analyzer's Warning codes feature-extension-types Implementation of the extension type feature legacy-area-analyzer Use area-devexp instead. 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

1 participant