Skip to content

noUnusedLocals: Don't count self-call in recursive function #16078

@ghost

Description

TypeScript Version: nightly (2.4.0-dev.20170525)

Code

function f(): void { f(); }

Expected behavior:

Function f is unused.

Actual behavior:

No error.

(Ref: palantir/tslint#1937)

Metadata

Metadata

Assignees

No one assigned

    Labels

    SuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions