9 lines
219 B
Text
9 lines
219 B
Text
|
=== tests/cases/compiler/contextualTyping2.ts ===
|
||
|
var foo: {id:number;} = {id:4, name:"foo"};
|
||
|
>foo : { id: number; }
|
||
|
>id : number
|
||
|
>{id:4, name:"foo"} : { id: number; name: string; }
|
||
|
>id : number
|
||
|
>name : string
|
||
|
|