13 lines
361 B
Plaintext
13 lines
361 B
Plaintext
|
=== tests/cases/compiler/contextualTyping17.ts ===
|
||
|
var foo: {id:number;} = {id:4}; foo = {id: 5, name:"foo"};
|
||
|
>foo : { id: number; }
|
||
|
>id : number
|
||
|
>{id:4} : { id: number; }
|
||
|
>id : number
|
||
|
>foo = {id: 5, name:"foo"} : { id: number; name: string; }
|
||
|
>foo : { id: number; }
|
||
|
>{id: 5, name:"foo"} : { id: number; name: string; }
|
||
|
>id : number
|
||
|
>name : string
|
||
|
|