Skip to content

dartdoc shows the wrong parameters for new-style generic function types #1472

Closed
@jcollins-g

Description

@jcollins-g

A function that looks like this:

/// A typedef with the new style generic function syntax.
typedef NewGenericTypedef<T> = List<S> Function<S>(T, int, bool);

is currently documented as having parameters (T, T, T).

This is caused by analyzer producing ParameterElementImpls that compare equally to each other, subverting dartdoc's internal object cache. dart-lang/sdk#30146

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions