Skip to content

References to symbols that are inherited are not found. #2389

@gspencergoog

Description

@gspencergoog

If I have a class structure like this:

class Base {
  /// Performs an action
  void action();
}

class Child extends Base {
}

/// Perform [Child.action] as often as possible.
class Other {
}

Then Dartdoc throws an error, saying that [Child.action] is an invalid link. If an explicit override is added to Child, then it finds the documentation.

In the wild, this happened when dartdoc was run on flutter/engine#20496, and I had to do this to make it work.

This makes it hard to refactor code, and in general shouldn't be necessary.

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failurescustomer-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