-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
Bug Report
π Search Terms
overload error message
π Version & Regression Information
- I was unable to test this prior to 3.3 because we didn't even have errors for each overload if we had less than 4 overloads
β― Playground Link
Playground link with relevant code
π» Code
declare function fn3(type: number): void
declare function fn3(type: string): void
declare function fn3(type: Symbol): void
declare function fn4(type: number): void
declare function fn4(type: string): void
declare function fn4(type: Symbol): void
declare function fn4(type: void): void
fn3(true)
fn4(true)π Actual behavior
error message is displayed as
671181234512
declare function fn3(type: number): void
declare function fn3(type: string): void
declare function fn3(type: Symbol): void
declare function fn4(type: number): void
declare function fn4(type: string): void
declare function fn4(type: Symbol): void
declare function fn4(type: void): void
fn3(true)
fn4(true)
No overload matches this call.
The last overload gave the following error.
Argument of type 'boolean' is not assignable to parameter of type 'void'.(2769)
input.tsx(8, 18): The last overload is declared here.
### π Expected behavior
Since I have `noErrorTruncation` enabled, I expected the error for each overload to be included like I would have, if the function had less than 4 overloads.
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug