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

Analyzer with implicit-dynamic turned off fails to flag typedef #37437

Closed
RedBrogdon opened this issue Jul 3, 2019 · 1 comment
Closed

Analyzer with implicit-dynamic turned off fails to flag typedef #37437

RedBrogdon opened this issue Jul 3, 2019 · 1 comment
Labels
analyzer-warning Issues with the analyzer's Warning codes area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P4 type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@RedBrogdon
Copy link

I have a Flutter project with this in its analysis_options.yaml file:

analyzer:
  strong-mode:
    implicit-casts: false
    implicit-dynamic: false

In a code file, I've got this:

typedef MyFunc = Function(int x);
anotherFunc(int x) { }

The first line is not flagged as an issue by the analyzer, but the second one is. Is that by design, or should the analyzer have declared both to be errors?

Currently running:

Dart VM version: 2.3.0-dev.0.5.flutter-a1668566e5 (Tue Apr 30 20:35:41 2019 +0200) on "macos_x64"

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F203, locale en-US)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
[✓] Android Studio (version 3.4)
[✓] IntelliJ IDEA Community Edition (version 2019.1.3)
[✓] VS Code (version 1.35.1)
[✓] Connected device (1 available)

@a-siva a-siva added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label Jul 3, 2019
@srawlins srawlins added the analyzer-warning Issues with the analyzer's Warning codes label Jun 16, 2020
@srawlins srawlins added the P4 label Jan 12, 2021
@srawlins srawlins added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Nov 16, 2021
@srawlins
Copy link
Member

srawlins commented May 1, 2023

implicit-dynamic is now deprecated.

@srawlins srawlins closed this as completed May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-warning Issues with the analyzer's Warning codes area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P4 type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants