Skip to content

Private superclasses lead to dead references #1476

Closed
@Hixie

Description

@Hixie

Consider this setup:

class _Private {
  /// This is the documentation for "foo".
  final bool foo;
}

/// See the [foo] documentation.
class Public extends _Private { }

You'll get the error message (paraphrasing a little) "warning: no canonical library found for test._Private.foo, not linking from _Private.foo referred to by Public".

But Public.foo appears in the documentation with the text from _Private.foo, so it seems like Public should just link to its own foo when it refers to [foo].

Marking P1 as "Broken links, few or on edge cases".

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1A high priority bug; for example, a single project is unusable or has many test failurescustomer-flutterIssues originating from important to Flutter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions