mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
644 B
Plaintext
20 lines
644 B
Plaintext
constructorOverloads4.ts(10,1): error TS2349: This expression is not callable.
|
|
Type 'Function' has no call signatures.
|
|
|
|
|
|
==== constructorOverloads4.ts (1 errors) ====
|
|
declare namespace M {
|
|
export class Function {
|
|
constructor(...args: string[]);
|
|
}
|
|
export function Function(...args: any[]): any;
|
|
export function Function(...args: string[]): Function;
|
|
}
|
|
|
|
|
|
(new M.Function("return 5"))();
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2349: This expression is not callable.
|
|
!!! error TS2349: Type 'Function' has no call signatures.
|
|
M.Function("yo");
|
|
|