2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/contextualTyping35.ts ===
|
|
|
|
var foo = <{ id: number;}> {id:4, name: "as"};
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo : { id: number; }
|
2014-08-15 23:33:16 +02:00
|
|
|
><{ id: number;}> {id:4, name: "as"} : { id: number; }
|
2015-04-16 01:44:20 +02:00
|
|
|
>id : number
|
2014-08-15 23:33:16 +02:00
|
|
|
>{id:4, name: "as"} : { id: number; name: string; }
|
2015-04-16 01:44:20 +02:00
|
|
|
>id : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>4 : number
|
2015-04-16 01:44:20 +02:00
|
|
|
>name : string
|
2015-04-13 21:36:11 +02:00
|
|
|
>"as" : string
|
2014-08-15 23:33:16 +02:00
|
|
|
|