mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
//// [tests/cases/compiler/contextualSignatureInArrayElementLibEs5.ts] ////
|
|
|
|
=== contextualSignatureInArrayElementLibEs5.ts ===
|
|
// See: https://github.com/microsoft/TypeScript/pull/53280#discussion_r1138684984
|
|
|
|
declare function test(
|
|
>test : Symbol(test, Decl(contextualSignatureInArrayElementLibEs5.ts, 0, 0))
|
|
|
|
arg: Record<string, (arg: string) => void> | Array<(arg: number) => void>
|
|
>arg : Symbol(arg, Decl(contextualSignatureInArrayElementLibEs5.ts, 2, 22))
|
|
>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --))
|
|
>arg : Symbol(arg, Decl(contextualSignatureInArrayElementLibEs5.ts, 3, 23))
|
|
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
|
|
>arg : Symbol(arg, Decl(contextualSignatureInArrayElementLibEs5.ts, 3, 54))
|
|
|
|
): void;
|
|
|
|
test([
|
|
>test : Symbol(test, Decl(contextualSignatureInArrayElementLibEs5.ts, 0, 0))
|
|
|
|
(arg) => {
|
|
>arg : Symbol(arg, Decl(contextualSignatureInArrayElementLibEs5.ts, 7, 3))
|
|
|
|
arg; // number
|
|
>arg : Symbol(arg, Decl(contextualSignatureInArrayElementLibEs5.ts, 7, 3))
|
|
|
|
},
|
|
]);
|
|
|