Skip to content

prefer_void_to_null false positive #57938

Closed
dart-archive/linter
#2862
@gabrc

Description

@gabrc

The lint prefer_void_to_null reports issue with the following code:

abstract class A {
  dynamic get foo;
}

class B extends A {
  @override
  Null get foo => null;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    devexp-linterIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.linter-false-positiveIssues related to lint rules that report a problem when it isn't a problem.linter-set-recommendedtype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions