Skip to content

Overriding getter with member variable causes docs to get lost #1779

Closed
@tvolkert

Description

@tvolkert

Consider the following:

library foo;

/// Base class docs
class Base {
  /// Great, thorough documentation
  bool get foo => true;
}

/// Subclass docs
class Sub extends Base {
  @override
  final bool foo = false;
}

When I look up the dartdocs for Sub.foo, I expect to see "Great, thorough documentation". Yet there are no docs for Sub.foo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work oncustomer-flutterIssues originating from important to Fluttertype-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