Skip to content

noUnusedLocals and noUnusedParameters should flag write-only variables #11499

Description

TypeScript Version: nightly (2.1.0-dev.20161010)

Code

(compile with --noUnusedParameters)

function f(a, b) {
    console.log(arguments)
}

Expected behavior:

No error

Actual behavior:

a.ts(1,12): error TS6133: 'a' is declared but never used.
a.ts(1,15): error TS6133: 'b' is declared but never used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Breaking ChangeWould introduce errors in existing codeFixedA 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