Skip to content

Fuzzy arrow / dynamic as bottom is a hint, but should be a warning #31874

@mit-mit

Description

@mit-mit

We stumbled over the grpc-dart repo not passing uses_dynamic_as_bottom by coincidence despite that repo running analysis on travis. The issue is that we currently report this as just a hint, which doesn't fail the build:

$ dartanalyzer lib test
Analyzing lib, test...
  hint • A function of type '(Socket) → void' can't be assigned to a variable of type '(dynamic) → FutureOr<void>' at lib/src/client/connection.dart:108:22 • uses_dynamic_as_bottom

Shouldn't this at least be a warning?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions