TypeScript/tests/baselines/reference/contextualTypeAny.types

20 lines
743 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/contextualTypeAny.ts ===
var x: any;
2015-04-13 23:01:57 +02:00
>x : any, Symbol(x, Decl(contextualTypeAny.ts, 0, 3))
2014-08-15 23:33:16 +02:00
var obj: { [s: string]: number } = { p: "", q: x };
2015-04-13 23:01:57 +02:00
>obj : { [s: string]: number; }, Symbol(obj, Decl(contextualTypeAny.ts, 2, 3))
>s : string, Symbol(s, Decl(contextualTypeAny.ts, 2, 12))
2014-08-15 23:33:16 +02:00
>{ p: "", q: x } : { [x: string]: any; p: string; q: any; }
2015-04-13 23:01:57 +02:00
>p : string, Symbol(p, Decl(contextualTypeAny.ts, 2, 36))
2015-04-13 21:36:11 +02:00
>"" : string
2015-04-13 23:01:57 +02:00
>q : any, Symbol(q, Decl(contextualTypeAny.ts, 2, 43))
>x : any, Symbol(x, Decl(contextualTypeAny.ts, 0, 3))
2014-08-15 23:33:16 +02:00
var arr: number[] = ["", x];
2015-04-13 23:01:57 +02:00
>arr : number[], Symbol(arr, Decl(contextualTypeAny.ts, 4, 3))
2014-08-15 23:33:16 +02:00
>["", x] : any[]
2015-04-13 21:36:11 +02:00
>"" : string
2015-04-13 23:01:57 +02:00
>x : any, Symbol(x, Decl(contextualTypeAny.ts, 0, 3))
2014-08-15 23:33:16 +02:00