2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/contextualTypeAny.ts ===
|
|
|
|
var x: any;
|
|
|
|
>x : any
|
|
|
|
|
|
|
|
var obj: { [s: string]: number } = { p: "", q: x };
|
2014-12-06 01:58:49 +01:00
|
|
|
>obj : { [s: string]: number; }
|
2014-08-15 23:33:16 +02:00
|
|
|
>s : string
|
|
|
|
>{ p: "", q: x } : { [x: string]: any; p: string; q: any; }
|
|
|
|
>p : string
|
|
|
|
>q : any
|
2014-08-25 19:36:12 +02:00
|
|
|
>x : any
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var arr: number[] = ["", x];
|
|
|
|
>arr : number[]
|
|
|
|
>["", x] : any[]
|
|
|
|
>x : any
|
|
|
|
|