Skip to content

Analyzer should warn about uncommented use of commented type parameters #26137

Closed
@nex3

Description

@nex3

The following code:

foo/*<T>*/() => <T>[];

is clearly invalid; it will fail in any implementation that's not aware of the commented generic syntax, including the Dart VM. The analyzer should warn about it even in strong mode to help users avoid the failures like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestlegacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions