TypeScript/tests/cases/compiler/overloadsAndTypeArgumentArity.ts

7 lines
339 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
declare function Callbacks(flags?: string): void;
declare function Callbacks<T>(flags?: string): void;
declare function Callbacks<T1, T2>(flags?: string): void;
declare function Callbacks<T1, T2, T3>(flags?: string): void;
Callbacks<number, string, boolean>('s'); // no error
new Callbacks<number, string, boolean>('s'); // no error