Skip to content

Expected 1-3 arguments, but got 2 #19220

Closed
@ghost

Description

TypeScript Version: 2.6.0-dev.20171015

Code

declare function f(x: number): number;
declare function f(x: number, y: number, z: number): number;

f(1, 2);

Expected behavior:

Expected 1 or 3 arguments, but got 2.

Actual behavior:

src/a.ts(4,1): error TS2554: Expected 1-3 arguments, but got 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Error MessagesThe issue relates to error messagingFixedA PR has been merged for this issueGood 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