18 lines
1.1 KiB
Plaintext
18 lines
1.1 KiB
Plaintext
tests/cases/compiler/overloadsAndTypeArgumentArityErrors.ts(5,11): error TS2558: Expected 0-2 type arguments, but got 3.
|
|
tests/cases/compiler/overloadsAndTypeArgumentArityErrors.ts(6,1): error TS2350: Only a void function can be called with the 'new' keyword.
|
|
tests/cases/compiler/overloadsAndTypeArgumentArityErrors.ts(6,15): error TS2558: Expected 0-2 type arguments, but got 3.
|
|
|
|
|
|
==== tests/cases/compiler/overloadsAndTypeArgumentArityErrors.ts (3 errors) ====
|
|
declare function Callbacks(flags?: string): void;
|
|
declare function Callbacks<T>(flags?: string): void;
|
|
declare function Callbacks<T1, T2>(flags?: string): void;
|
|
|
|
Callbacks<number, string, boolean>('s'); // wrong number of type arguments
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2558: Expected 0-2 type arguments, but got 3.
|
|
new Callbacks<number, string, boolean>('s'); // wrong number of type arguments
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2350: Only a void function can be called with the 'new' keyword.
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2558: Expected 0-2 type arguments, but got 3. |