Skip to content

Should unused span cover type annotation as well #24598

Closed
@mjbvz

Description

@mjbvz

From microsoft/vscode#50640

TypeScript Version: 3.0.0-dev.201601

Search Terms:

  • unused

Code

function foo(x: number) {}

Current behavior:
Only the span for the letter x is marked as unused

Question
Should the unused span cover the type annotation as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions