mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
34 lines
1.9 KiB
Plaintext
34 lines
1.9 KiB
Plaintext
//// [tests/cases/compiler/constructorOverloads4.ts] ////
|
|
|
|
=== constructorOverloads4.ts ===
|
|
declare namespace M {
|
|
>M : Symbol(M, Decl(constructorOverloads4.ts, 0, 0))
|
|
|
|
export class Function {
|
|
>Function : Symbol(Function, Decl(constructorOverloads4.ts, 3, 5), Decl(constructorOverloads4.ts, 4, 50), Decl(constructorOverloads4.ts, 0, 21))
|
|
|
|
constructor(...args: string[]);
|
|
>args : Symbol(args, Decl(constructorOverloads4.ts, 2, 20))
|
|
}
|
|
export function Function(...args: any[]): any;
|
|
>Function : Symbol(Function, Decl(constructorOverloads4.ts, 3, 5), Decl(constructorOverloads4.ts, 4, 50), Decl(constructorOverloads4.ts, 0, 21))
|
|
>args : Symbol(args, Decl(constructorOverloads4.ts, 4, 29))
|
|
|
|
export function Function(...args: string[]): Function;
|
|
>Function : Symbol(Function, Decl(constructorOverloads4.ts, 3, 5), Decl(constructorOverloads4.ts, 4, 50), Decl(constructorOverloads4.ts, 0, 21))
|
|
>args : Symbol(args, Decl(constructorOverloads4.ts, 5, 29))
|
|
>Function : Symbol(Function, Decl(constructorOverloads4.ts, 3, 5), Decl(constructorOverloads4.ts, 4, 50), Decl(constructorOverloads4.ts, 0, 21))
|
|
}
|
|
|
|
|
|
(new M.Function("return 5"))();
|
|
>M.Function : Symbol(M.Function, Decl(constructorOverloads4.ts, 3, 5), Decl(constructorOverloads4.ts, 4, 50), Decl(constructorOverloads4.ts, 0, 21))
|
|
>M : Symbol(M, Decl(constructorOverloads4.ts, 0, 0))
|
|
>Function : Symbol(M.Function, Decl(constructorOverloads4.ts, 3, 5), Decl(constructorOverloads4.ts, 4, 50), Decl(constructorOverloads4.ts, 0, 21))
|
|
|
|
M.Function("yo");
|
|
>M.Function : Symbol(M.Function, Decl(constructorOverloads4.ts, 3, 5), Decl(constructorOverloads4.ts, 4, 50), Decl(constructorOverloads4.ts, 0, 21))
|
|
>M : Symbol(M, Decl(constructorOverloads4.ts, 0, 0))
|
|
>Function : Symbol(M.Function, Decl(constructorOverloads4.ts, 3, 5), Decl(constructorOverloads4.ts, 4, 50), Decl(constructorOverloads4.ts, 0, 21))
|
|
|