Skip to content

Giving too many arguments should error on the first argument that exceeds arity #25254

@DanielRosenwasser

Description

@DanielRosenwasser
declare function foo(x: any, y: any, z: any)

foo(1, 2, 3, 4);

Expected: Error span appears on 4
Actual: Error span appears on the entire call.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: Error MessagesThe issue relates to error messaging

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions