Skip to content

When body function use "arguments" object, should there be an error (using "noUnusedParameter" is true)  #9792

Closed
@yuit

Description

@yuit

TypeScript : 2.0.0

While trying to apply "noUnusedParameter" option in TypeScript code base, I ran into situation when one use Function.apply and pass in "arguments" object. Our compiler will then issue an error that the containing function's parameter is unused, should we still give an error in this case or by seeing "arguments" object use in function body we should not give an error

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