Skip to content

Allow type arguments in class literals #11923

@DartBot

Description

@DartBot

This issue was originally filed by @seaneagan


We have class literals e.g. List, but they do not allow using generics, e.g. List<String>. One use case is issue #10407, being able to do:

expect(x, isA(List<String>));

instead of just:

expect(x, isA(List));

[Edit Mar 2021 eernstg: Closing this issue as a duplicate of dart-lang/language#123. This one is older indeed, but today dart-lang/language#123 is used to discuss this feature proposal.]

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).closed-duplicateClosed in favor of an existing reportcore-ltype-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