Skip to content

Unused parameter warning for type parameter in interface but not for type alias #15208

@ghost

Description

TypeScript Version: nightly (2.3.0-dev.20170415)

Code

type Alias<T> = { x: number };
interface I<T> { x: number; }

Expected behavior:

Both are --noUnusedParameters errors.

Actual behavior:

Only the interface is an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions