TypeScript/tests/baselines/reference/contextualTyping37.types
2014-08-15 14:37:48 -07:00

11 lines
299 B
Plaintext

=== tests/cases/compiler/contextualTyping37.ts ===
var foo = <{ id: number; }[]>[{ foo: "s" }, { }];
>foo : { id: number; }[]
><{ id: number; }[]>[{ foo: "s" }, { }] : { id: number; }[]
>id : number
>[{ foo: "s" }, { }] : {}[]
>{ foo: "s" } : { foo: string; }
>foo : string
>{ } : {}