Skip to content

Sometimes error messages point to wildly wrong places #1405

Open
@Hixie

Description

@Hixie

In routes.dart, we have a class ModalRoute, with a member willPop that has a dartdoc that dubiously refers to the bogus, maybe doubly-bogus, [super.willPop()]. That class extends a subclass of Route and also mixes in a class that extends Route directly. Route and the mixin both have a willPop. The mixin has no docs in its. The Route class does. Route is in navigator.dart. I get this error:

warning: unresolved doc reference [super.willPop()], from material.Route.willPop (/usr/local/google/home/ianh/dev/flutter/packages/flutter/lib/src/widgets/navigator.dart:76:31)

Best guess is that when you have an error in the doc of an override, dartdoc always points to the original member (in the superclass).

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