Skip to content

MethodSignature is the only TypeElement that introduces 'arguments' symbol in scope #28622

Closed
@ajafff

Description

@ajafff

TypeScript Version: 3.2.0-dev.20181110

Search Terms:

Code

interface I {
    method(args: typeof arguments): void;
    fn: (args: typeof arguments) => void;
    (args: typeof arguments): void;
    new (args: typeof arguments): void;
    construct: new (args: typeof arguments) => void;
}

Expected behavior:

Error on all occurrences of arguments.

Actual behavior:

Error Cannot find name 'arguments'. on all signatures but method.

Playground Link: https://agentcooper.github.io/typescript-play/#code/JYOwLgpgTgZghgYwgAgJLIN4Chm+QWwjAAsB7AEwAo4oBzAZwC5kwBPABwlJmRtoFdC4egEpmAN1LByAbhx4YIZtTpMWHLjz6CIwkcgC8APmSTpcvMhUNmbTt150deiVNnzcICAHcrfNXaajgJCYKKu5h7ICKQg9GBQ-AhgzF6+1gEaDtqhooYmZu4AvkA

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions