TypeScript/tests/baselines/reference/contextualTypeAny.types

18 lines
348 B
Plaintext

=== tests/cases/compiler/contextualTypeAny.ts ===
var x: any;
>x : any
var obj: { [s: string]: number } = { p: "", q: x };
>obj : { [s: string]: number; }
>s : string
>{ p: "", q: x } : { [x: string]: any; p: string; q: any; }
>p : string
>q : any
>x : any
var arr: number[] = ["", x];
>arr : number[]
>["", x] : any[]
>x : any