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
Playground link using 3.3
π» 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.
Bug Report
π Search Terms
overload error message
π Version & Regression Information
β― Playground Link
Playground link with relevant code
Playground link using 3.3
π» Code
π Actual behavior
error message is displayed as
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.