Skip to content

Mark declaration, not just identifier, as unused #50640

@jrieken

Description

@jrieken

re #50487

  • have the snippet below
  • not how just the a is marked as unused but not the whole declaration

screen shot 2018-05-29 at 12 14 07

class TestMe {

    constructor(b: boolean);
    constructor(b: string)
    constructor(b: boolean | string, a?: boolean) {
        console.log(b);
    }

    callMe(): any {
        interface Foo {
            bar: boolean;
        }

        let bazz: Foo;

        return bazz;
    }
}

Metadata

Metadata

Assignees

Labels

javascriptJavaScript support issuestypescriptTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions