23 lines
2 KiB
Text
23 lines
2 KiB
Text
=== tests/cases/compiler/overloadWithCallbacksWithDifferingOptionalityOnArgs.ts ===
|
|
function x2(callback: (x?: number) => number);
|
|
>x2 : Symbol(x2, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 0), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 46), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 1, 45))
|
|
>callback : Symbol(callback, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 12))
|
|
>x : Symbol(x, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 23))
|
|
|
|
function x2(callback: (x: string) => number);
|
|
>x2 : Symbol(x2, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 0), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 46), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 1, 45))
|
|
>callback : Symbol(callback, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 1, 12))
|
|
>x : Symbol(x, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 1, 23))
|
|
|
|
function x2(callback: (x: any) => number) { }
|
|
>x2 : Symbol(x2, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 0), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 46), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 1, 45))
|
|
>callback : Symbol(callback, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 2, 12))
|
|
>x : Symbol(x, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 2, 23))
|
|
|
|
x2(() => 1);
|
|
>x2 : Symbol(x2, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 0), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 46), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 1, 45))
|
|
|
|
x2((x) => 1 );
|
|
>x2 : Symbol(x2, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 0), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 46), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 1, 45))
|
|
>x : Symbol(x, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 4, 4))
|
|
|