Files
2025-02-26 14:53:49 -08:00

24 lines
605 B
Plaintext

//// [tests/cases/compiler/functionCall9.ts] ////
=== functionCall9.ts ===
function foo(a?:string, b?:number){};
>foo : Symbol(foo, Decl(functionCall9.ts, 0, 0))
>a : Symbol(a, Decl(functionCall9.ts, 0, 13))
>b : Symbol(b, Decl(functionCall9.ts, 0, 23))
foo('foo', 1);
>foo : Symbol(foo, Decl(functionCall9.ts, 0, 0))
foo('foo');
>foo : Symbol(foo, Decl(functionCall9.ts, 0, 0))
foo('foo','bar');
>foo : Symbol(foo, Decl(functionCall9.ts, 0, 0))
foo('foo', 1, 'bar');
>foo : Symbol(foo, Decl(functionCall9.ts, 0, 0))
foo();
>foo : Symbol(foo, Decl(functionCall9.ts, 0, 0))