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

consider adding strict_top_level_inference #218

Open
devoncarew opened this issue Dec 3, 2024 · 1 comment
Open

consider adding strict_top_level_inference #218

devoncarew opened this issue Dec 3, 2024 · 1 comment

Comments

@devoncarew
Copy link
Member

We should consider adding a strict_top_level_inference lint, as described here: dart-lang/sdk#59562. Note that this lint does not yet exist.

This lint would warn about every omitted return type, parameter type, and variable type of a top-level declaration or class-like-namespace-level declaration (static or instance member- or constructor declaration), which is not given a type by inference, and which therefore defaults to dynamic.

@goderbauer
Copy link
Contributor

I am in favor of this to get rid of more (implicit) dynamics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Triage backlog
Development

No branches or pull requests

2 participants