Skip to content

Mark unused infer type parameter #25594

Closed

Description

TypeScript Version: 3.0.0-dev.20180711

Code

type Something<T> = T extends infer U ? number : string;

Expected behavior:

U marked unused.

Actual behavior:

No error.

Activity

  1. ghost added
    SuggestionAn idea for TypeScript
    on Jul 12, 2018
  2. ghost
    self-assigned this
    on Jul 12, 2018
  3. ghost added
    FixedA PR has been merged for this issue
    on Jul 18, 2018
  4. ghost closed this as completedon Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedA PR has been merged for this issueSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions